pub struct QuantumNode {
pub instances: Vec<TemplateInstance>,
pub detectors: Vec<NodeDetector>,
pub detector_bundles: Vec<DetectorBundleUse>,
pub restarts: Vec<NodeRestart>,
pub timeline: Option<QuantumTimeline>,
pub guards: Vec<QuantumGuard>,
}Expand description
A template-backed quantum node: its ops come from instantiating the referenced templates from the pool, not from any per-node circuit.
Instances must have merge-compatible template entry bodies: aligned
tick/repeat segments, matching repeat counts, and no same-segment qubit
overlap except duplicate measurements or duplicate same-basis resets.
Bloq::validate enforces this for debug
compilation, so instantiation and backends may assume it.
Fields§
§instances: Vec<TemplateInstance>Placed circuit templates.
detectors: Vec<NodeDetector>Cross-template detectors.
detector_bundles: Vec<DetectorBundleUse>Shared cross-template detector rows bound to this node’s instances.
restarts: Vec<NodeRestart>Cross-instance restart syndromes; see NodeRestart.
timeline: Option<QuantumTimeline>Source-layer projection for a multi-z block component. Single-layer and synthetic nodes need no timeline.
guards: Vec<QuantumGuard>Conditional registrations in this component. Unlisted members and side tables are common to every selection. All inputs must be ready before the component starts; registration itself performs no quantum work.
Trait Implementations§
Source§impl Clone for QuantumNode
impl Clone for QuantumNode
Source§fn clone(&self) -> QuantumNode
fn clone(&self) -> QuantumNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more