About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
qiskit.quantum_info.average_gate_fidelity
average_gate_fidelity(channel, target=None, require_cp=True, require_tp=False)
Return the average gate fidelity of a noisy quantum channel.
The average gate fidelity is given by
where is the process_fidelity()
of the input quantum channel with a target unitary , and is the dimension of the channel.
Parameters
- channel (QuantumChannel or Operator) – noisy quantum channel.
- target (Operator or None) – target unitary operator. If None target is the identity operator [Default: None].
- require_cp (bool) – check if input and target channels are completely-positive and if non-CP log warning containing negative eigenvalues of Choi-matrix [Default: True].
- require_tp (bool) – check if input and target channels are trace-preserving and if non-TP log warning containing negative eigenvalues of partial Choi-matrix [Default: True].
Returns
The average gate fidelity .
Return type
float
Raises
QiskitError – if the channel and target do not have the same dimensions, or have different input and output dimensions.
Was this page helpful?
Report a bug or request content on GitHub.