| 1987 | |
| 1988 | |
| 1989 | qcomp getStateVecExpecAllSuffixPauliStr(Qureg qureg, vector<int> suffixX, vector<int> suffixY, vector<int> suffixZ) { |
| 1990 | assert_localiserGivenStateVec(qureg); |
| 1991 | |
| 1992 | // optimised scenario when str = I |
| 1993 | if (suffixX.empty() && suffixY.empty() && suffixZ.empty()) |
| 1994 | return accel_statevec_calcTotalProb_sub(qureg); |
| 1995 | |
| 1996 | // optimised scenario when str = IZ |
| 1997 | if (suffixX.empty() && suffixY.empty()) |
| 1998 | return accel_statevec_calcExpecAnyTargZ_sub(qureg, suffixZ); |
| 1999 | |
| 2000 | // generic XYZ |
| 2001 | return accel_statevec_calcExpecPauliStr_subA(qureg, suffixX, suffixY, suffixZ); |
| 2002 | } |
| 2003 | |
| 2004 | |
| 2005 | qcomp getDensMatrExpecPauliStrTermOfOnlyThisNode(Qureg qureg, PauliStr str) { |
no test coverage detected