pub enum TnGate {
OneQ {
qubit: usize,
m: [[Complex<f32>; 2]; 2],
},
TwoQ {
q0: usize,
q1: usize,
m: [[Complex<f32>; 4]; 4],
},
}Expand description
A circuit gate for the tensor-network amplitude evaluator.
Variants§
OneQ
Single-qubit gate m on qubit.
TwoQ
Two-qubit gate m (4×4, composite index 2*q0+q1) on (q0, q1).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TnGate
impl RefUnwindSafe for TnGate
impl Send for TnGate
impl Sync for TnGate
impl Unpin for TnGate
impl UnsafeUnpin for TnGate
impl UnwindSafe for TnGate
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