Struct qip::builder::Measurements
source · pub struct Measurements<P: Precision> { /* private fields */ }
Expand description
A series of measurement results at the end of the circuit.
Implementations§
source§impl<P: Precision> Measurements<P>
impl<P: Precision> Measurements<P>
sourcepub fn get_measurement(&self, handle: MeasurementHandle) -> (usize, P)
pub fn get_measurement(&self, handle: MeasurementHandle) -> (usize, P)
Get a measurement result given a handle.
sourcepub fn get_stochastic_measurement(
&self,
handle: StochasticMeasurementHandle
) -> &[P]
pub fn get_stochastic_measurement( &self, handle: StochasticMeasurementHandle ) -> &[P]
Get a stochastic measurement result given a handle.
Trait Implementations§
Auto Trait Implementations§
impl<P> RefUnwindSafe for Measurements<P>where P: RefUnwindSafe,
impl<P> Send for Measurements<P>
impl<P> Sync for Measurements<P>
impl<P> Unpin for Measurements<P>where P: Unpin,
impl<P> UnwindSafe for Measurements<P>where P: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more