pygsti.extras.idletomography.idtcore.stochastic_outcome

pygsti.extras.idletomography.idtcore.stochastic_outcome#

stochastic_outcome(prep, error, meas)#

Computes the “expected” outcome when the stochastic error error occurs between preparing in prep and measuring in basis meas.

Note: currently, the preparation and measurement bases must be the same (up to signs) or an AssertionError is raised. (If they’re not, there isn’t a single expected outcome).

Parameters:
  • prep (NQPauliState) – The state that is prepared.

  • error (NQPauliOp) – The type (as a pauli operator) of Stochastic error.

  • meas (NQPauliState) – The basis which is measured. The ‘signs’ of the basis Paulis determine which state is measured as a ‘0’ vs. a ‘1’. (essentially the POVM.)

Return type:

NQOutcome