pygsti.extras.idletomography.idtcore.affine_jac_obs_element#
- affine_jac_obs_element(prep, error, observable)#
Computes the Jacobian matrix element for a Affine error: how the expectation value of observable changes with respect to the rate of error when preparing state prep.
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.
observable (NQPauliOp) – The observable whose expectation value is measured.
- Return type:
float