Enum ket::instruction::Instruction
source · pub enum Instruction {
Alloc {
dirty: bool,
target: usize,
},
Free {
dirty: bool,
target: usize,
},
Gate {
gate: QuantumGate,
target: usize,
control: Vec<usize>,
},
Measure {
qubits: Vec<usize>,
output: usize,
},
Plugin {
name: String,
target: Vec<usize>,
args: String,
},
IntOp {
op: ClassicalOp,
result: usize,
lhs: usize,
rhs: usize,
},
IntSet {
result: usize,
value: i64,
},
Dump {
qubits: Vec<usize>,
output: usize,
},
End(EndInstruction),
}Variants
Alloc
Free
Gate
Measure
Plugin
IntOp
IntSet
Dump
End(EndInstruction)
Trait Implementations
sourceimpl Debug for Instruction
impl Debug for Instruction
sourceimpl<'de> Deserialize<'de> for Instruction
impl<'de> Deserialize<'de> for Instruction
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Instruction
impl Serialize for Instruction
Auto Trait Implementations
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more