![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for non-destructively calculating the probabilities of measurement outcomes. More...
Functions | |
qreal | calcProbOfBasisState (Qureg qureg, qindex index) |
qreal | calcProbOfMultiQubitOutcome (Qureg qureg, int *qubits, int *outcomes, int numQubits) |
qreal | calcProbOfQubitOutcome (Qureg qureg, int qubit, int outcome) |
void | calcProbsOfAllMultiQubitOutcomes (qreal *outcomeProbs, Qureg qureg, int *qubits, int numQubits) |
Functions for non-destructively calculating the probabilities of measurement outcomes.
qreal calcProbOfBasisState | ( | Qureg | qureg, |
qindex | index ) |
Definition at line 219 of file calculations.cpp.
Referenced by TEST_CASE().
qreal calcProbOfMultiQubitOutcome | ( | Qureg | qureg, |
int * | qubits, | ||
int * | outcomes, | ||
int | numQubits ) |
Definition at line 246 of file calculations.cpp.
Referenced by applyForcedMultiQubitMeasurement(), calcProbOfQubitOutcome(), and TEST_CASE().
qreal calcProbOfQubitOutcome | ( | Qureg | qureg, |
int | qubit, | ||
int | outcome ) |
Definition at line 236 of file calculations.cpp.
Referenced by applyForcedQubitMeasurement(), applyQubitMeasurementAndGetProb(), and TEST_CASE().
void calcProbsOfAllMultiQubitOutcomes | ( | qreal * | outcomeProbs, |
Qureg | qureg, | ||
int * | qubits, | ||
int | numQubits ) |
Definition at line 260 of file calculations.cpp.
Referenced by applyMultiQubitMeasurementAndGetProb(), and TEST_CASE().