pub enum CoinInit {
Zero,
One,
SymmetricI,
}Expand description
The two coin basis states used to seed a localized walker.
Variants§
Zero
Coin |0⟩ — the “rightward-biased” Hadamard walk seed.
One
Coin |1⟩ — the “leftward-biased” Hadamard walk seed.
SymmetricI
Symmetric coin (|0⟩ + i|1⟩)/√2, which yields a left–right symmetric
position distribution under the Hadamard walk.
Trait Implementations§
impl Copy for CoinInit
impl Eq for CoinInit
impl StructuralPartialEq for CoinInit
Auto Trait Implementations§
impl Freeze for CoinInit
impl RefUnwindSafe for CoinInit
impl Send for CoinInit
impl Sync for CoinInit
impl Unpin for CoinInit
impl UnsafeUnpin for CoinInit
impl UnwindSafe for CoinInit
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