Function qasmsim::statevector::assert_approx_eq
source · pub fn assert_approx_eq(v1: &StateVector, v2: &StateVector)
Expand description
Assert two state-vector are approximately equal by an error no higher than the f64 margin for each of the complex components.