pub struct Gate2x2 {
pub matrix: [[Complex; 2]; 2],
pub name: String,
}Expand description
A single-qubit (2×2 unitary) quantum gate.
Fields§
§matrix: [[Complex; 2]; 2]§name: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Gate2x2
impl RefUnwindSafe for Gate2x2
impl Send for Gate2x2
impl Sync for Gate2x2
impl Unpin for Gate2x2
impl UnsafeUnpin for Gate2x2
impl UnwindSafe for Gate2x2
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