Enum qip::builder::MeasurementObject
source · pub enum MeasurementObject {
Measurement,
StochasticMeasurement,
}
Expand description
Represents a type of measurement in the circuit.
Variants§
Measurement
Performs a single measurement and collapses the wavefunction.
StochasticMeasurement
Simulates a series of measurements and returns a probability distribution over results. Does not collapse the wavefunction.
Trait Implementations§
source§impl Clone for MeasurementObject
impl Clone for MeasurementObject
source§fn clone(&self) -> MeasurementObject
fn clone(&self) -> MeasurementObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MeasurementObject
impl Debug for MeasurementObject
source§impl Hash for MeasurementObject
impl Hash for MeasurementObject
source§impl PartialEq<MeasurementObject> for MeasurementObject
impl PartialEq<MeasurementObject> for MeasurementObject
source§fn eq(&self, other: &MeasurementObject) -> bool
fn eq(&self, other: &MeasurementObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MeasurementObject
impl Eq for MeasurementObject
impl StructuralEq for MeasurementObject
impl StructuralPartialEq for MeasurementObject
Auto Trait Implementations§
impl RefUnwindSafe for MeasurementObject
impl Send for MeasurementObject
impl Sync for MeasurementObject
impl Unpin for MeasurementObject
impl UnwindSafe for MeasurementObject
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