Skip to main content

Measure

Trait Measure 

Source
pub trait Measure {
    // Required method
    fn measure(&mut self, addr0: usize) -> bool;
}
Expand description

Projective Z-basis measurement returning a bare boolean outcome.

Required Methods§

Source

fn measure(&mut self, addr0: usize) -> bool

Measure qubit addr0 in the computational basis. Returns true for outcome |1⟩, false for |0⟩.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Config> Measure for Tableau<T>
where <<T as Config>::Storage as BitView>::Store: PrimInt,