Skip to content

Commit 7c2586e

Browse files
committed
Add missing template instantiations for expectation values
1 parent 30cdae9 commit 7c2586e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/pecos-quest/src/gpu_stubs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,11 @@ template std::complex<double> gpu_densmatr_calcFidelityWithPureState_sub<1>(Qure
824824

825825
// Explicit template instantiations for expectation value calculations
826826
template std::complex<double> gpu_statevec_calcExpecFullStateDiagMatr_sub<0, 0>(Qureg, FullStateDiagMatr, std::complex<double>);
827+
template std::complex<double> gpu_statevec_calcExpecFullStateDiagMatr_sub<0, 1>(Qureg, FullStateDiagMatr, std::complex<double>);
827828
template std::complex<double> gpu_statevec_calcExpecFullStateDiagMatr_sub<1, 0>(Qureg, FullStateDiagMatr, std::complex<double>);
828829
template std::complex<double> gpu_statevec_calcExpecFullStateDiagMatr_sub<1, 1>(Qureg, FullStateDiagMatr, std::complex<double>);
829830

830831
template std::complex<double> gpu_densmatr_calcExpecFullStateDiagMatr_sub<0, 0>(Qureg, FullStateDiagMatr, std::complex<double>);
832+
template std::complex<double> gpu_densmatr_calcExpecFullStateDiagMatr_sub<0, 1>(Qureg, FullStateDiagMatr, std::complex<double>);
831833
template std::complex<double> gpu_densmatr_calcExpecFullStateDiagMatr_sub<1, 0>(Qureg, FullStateDiagMatr, std::complex<double>);
832834
template std::complex<double> gpu_densmatr_calcExpecFullStateDiagMatr_sub<1, 1>(Qureg, FullStateDiagMatr, std::complex<double>);

0 commit comments

Comments
 (0)