pub struct Gate {
pub num_targets: usize,
pub num_arguments: usize,
pub operations: Vec<GateOperation>,
}
Expand description
Describes a custom gate defined in openqasm
Fields§
§num_targets: usize
How many qubits the gate operates on
num_arguments: usize
How many parameters the gate requires
operations: Vec<GateOperation>
The list of GateOperations to apply when running the gate in order of execution.
Auto Trait Implementations§
impl Freeze for Gate
impl !RefUnwindSafe for Gate
impl !Send for Gate
impl !Sync for Gate
impl Unpin for Gate
impl !UnwindSafe for Gate
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