pub struct SpinState {
pub up: Complex,
pub down: Complex,
}Expand description
Spin-1/2 state: |psi> = up|+> + down|->.
Fields§
§up: Complex§down: ComplexImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpinState
impl RefUnwindSafe for SpinState
impl Send for SpinState
impl Sync for SpinState
impl Unpin for SpinState
impl UnsafeUnpin for SpinState
impl UnwindSafe for SpinState
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