[−][src]Function qip::measurement_ops::measure
pub fn measure<P: Precision>(
n: u64,
indices: &[u64],
input: &[Complex<P>],
output: &mut Vec<Complex<P>>,
offsets: Option<(u64, u64)>,
multithread: bool
) -> (u64, P)
Selects a measured state from input
, then calls measure_state
to manipulate the output.
Returns the measured state and probability.