pub enum GateOp {
Single {
gate: Gate2x2,
qubit: usize,
},
Cnot {
control: usize,
target: usize,
},
}Expand description
A gate operation in a QuantumCircuit.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GateOp
impl RefUnwindSafe for GateOp
impl Send for GateOp
impl Sync for GateOp
impl Unpin for GateOp
impl UnsafeUnpin for GateOp
impl UnwindSafe for GateOp
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