gate_error

Function gate_error 

Source
pub fn gate_error(
    channel: &QuantumChannel,
    target: Option<&QuantumChannel>,
) -> Result<f64, QuantumInfoError>
Expand description

Calculate the gate error (infidelity) of a quantum channel.

r = 1 - F_avg

§Arguments

  • channel - Noisy quantum channel
  • target - Target unitary

§Returns

The gate error r ∈ [0, 1]