Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.quantum_info.gate_error

gate_error(channel, target=None, require_cp=True, require_tp=False)

GitHub

Return the gate error of a noisy quantum channel.

The gate error EE is given by the average gate infidelity

E(E,U)=1Fave(E,U)E(\mathcal{E}, U) = 1 - F_{\text{ave}}(\mathcal{E}, U)

where Fave(E,U)F_{\text{ave}}(\mathcal{E}, U) is the average_gate_fidelity() of the input quantum channel E\mathcal{E} with a target unitary UU.

Parameters

  • channel (QuantumChannel) – noisy quantum channel.
  • target (Operator or None) – target unitary operator. If None target is the identity operator [Default: None].
  • require_cp (bool) – require channel to be completely-positive [Default: True].
  • require_tp (bool) – require channel to be trace-preserving [Default: False].

Returns

The average gate error EE.

Return type

float

Raises

  • QiskitError – if the channel and target do not have the same dimensions, or have different input and output dimensions.
  • QiskitError – if the channel and target or are not completely-positive (with require_cp=True) or not trace-preserving (with require_tp=True).
Was this page helpful?
Report a bug or request content on GitHub.