pub enum Instruction {
Show 13 variants
Quantum(QuantumTask),
Eval(BoolOp),
Accumulate(RecordParity),
Bind(Box<[BoundaryBinding]>),
ReadoutRecipe {
bits: Box<[BitId]>,
bindings: Box<[TaskId]>,
},
Observable {
index: u32,
bits: Box<[BitId]>,
bindings: Box<[TaskId]>,
},
Decode(DecodeRequest),
Discard(BoolOp),
Rus {
body: Stream,
restart: BoolOp,
owned_qubits: Box<[QubitId]>,
attempt_bits: Box<[BitId]>,
attempt_records: Box<[RecordId]>,
resource: ResourceId,
retry_prepare: QuantumStream,
decoder_hold: Box<[MemoryCycle]>,
cultivation_exits: Box<[TaskId]>,
},
WaitFor {
until: Box<[TaskId]>,
memory: Box<[MemoryCycle]>,
},
SignalReady {
resource: ResourceId,
},
MemoryRounds {
rounds: u32,
stream: QuantumStream,
detectors: Box<[RecordParity]>,
},
Idle {
duration: f64,
noise_ratio: f64,
operations: Box<[QuantumOp]>,
},
}Expand description
VM instruction set. Structured bodies refer to the shared task arena.
Variants§
Quantum(QuantumTask)
Eval(BoolOp)
Accumulate(RecordParity)
Bind(Box<[BoundaryBinding]>)
ReadoutRecipe
Shared bit parity and boundary bindings; only a complete Observable reads them.
Observable
Decode(DecodeRequest)
Publish one observable’s corrected parity or decoder flip.
Discard(BoolOp)
Rus
Repeat a source-isolated body without rolling back global state or time.
Fields
resource: ResourceIdretry_prepare: QuantumStreamOptional explicit preparation before attempts after the first. Compiled factories replay authored body resets and leave this empty.
decoder_hold: Box<[MemoryCycle]>Exact terminal seam cycles used while attempt decoders are pending.
WaitFor
Hold a live patch until every task in until is ready. Execute as many
whole syndrome rounds as fit, then idle only for a sub-round remainder.
Fields
memory: Box<[MemoryCycle]>SignalReady
Fields
resource: ResourceIdMemoryRounds
Statically requested memory rounds. The stream already contains the
exact full rounds circuit and executes once; rounds is inspection
metadata.
Idle
A physical hold shorter than one available syndrome round.
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more