average_gate_fidelity

Function average_gate_fidelity 

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

Calculate the average gate fidelity of a noisy quantum channel.

F_avg(E, U) = (d * F_pro(E, U) + 1) / (d + 1)

§Arguments

  • channel - Noisy quantum channel
  • target - Target unitary (if None, identity is used)

§Returns

The average gate fidelity F_avg ∈ [0, 1]