pub trait StochasticMeasurementBuilder: CircuitBuilder {
type StochasticMeasurementHandle;
// Required method
fn measure_stochastic(
&mut self,
r: Self::Register
) -> (Self::Register, Self::StochasticMeasurementHandle);
}
Expand description
A builder that can take nondestructive measurements.
Required Associated Types§
sourcetype StochasticMeasurementHandle
type StochasticMeasurementHandle
Handle which points to measurements.
Required Methods§
sourcefn measure_stochastic(
&mut self,
r: Self::Register
) -> (Self::Register, Self::StochasticMeasurementHandle)
fn measure_stochastic( &mut self, r: Self::Register ) -> (Self::Register, Self::StochasticMeasurementHandle)
Take a measurement of r
, return r
and a handle to fetch the result later.