Skip to main content

expectation_z

Function expectation_z 

Source
pub fn expectation_z(state: &Array1<Complex64>, target: usize) -> f64
Expand description

Expectation value of the Pauli-Z operator on qubit target, ⟨Z⟩ = P(|0⟩) − P(|1⟩) ∈ [−1, 1].