pygsti.extras.idletomography.idtcore.affine_jac_element#
- affine_jac_element(prep, error, meas, outcome)#
Computes the Jacobian matrix element for a Affine error: how the probability of outcome changes with respect to the rate of error when preparing state prep and measuring in basis meas.
Note: Affine error maps leave qubits corresponging to I’s in error alone. An affine error is defined as replacing portions of the density matrix corresponding to non-trivial Pauli operators with those operators.
- Parameters:
prep (NQPauliState) – The state that is prepared.
error (NQPauliOp) – The type (as a pauli operator) of Affine error.
meas (NQPauliState) – The basis that is measured (essentially the POVM).
outcome (NQOutcome) – The measurement outcome that is considered.
- Return type:
float