pub struct Qubit {
pub alpha: Complex,
pub beta: Complex,
}Expand description
A single qubit state α|0⟩ + β|1⟩ with |α|² + |β|² = 1.
Fields§
§alpha: Complex§beta: ComplexImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Qubit
impl RefUnwindSafe for Qubit
impl Send for Qubit
impl Sync for Qubit
impl Unpin for Qubit
impl UnsafeUnpin for Qubit
impl UnwindSafe for Qubit
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