Enum quantr::circuit::Measurement
source · pub enum Measurement<T> {
Observable(T),
NonObservable(T),
}Expand description
Distinguishes observable and non-observable quantities.
For example, this will distinguish the retreival of a superposition (that cannot be measured directly), and the state resulting from the collapse of a superposition upon measurement.
Variants§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Measurement<T>where T: RefUnwindSafe,
impl<T> Send for Measurement<T>where T: Send,
impl<T> Sync for Measurement<T>where T: Sync,
impl<T> Unpin for Measurement<T>where T: Unpin,
impl<T> UnwindSafe for Measurement<T>where T: 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