Expand description
§Quantum Device Module
This module provides types for modeling quantum hardware devices. It includes device topology, qubit layout mapping, noise models, and execution result handling.
§Key Components
Device: Quantum device specification with qubit and edge propertiesTopology: Device connectivity graphLayout: Logical to physical qubit mappingNoiseModel: Noise simulation parametersExecutionResult: Measurement outcome collection
§Instruction capability semantics
Topology describes directed physical connectivity only; a coupling edge
does not by itself name the instructions executable on that edge.
Device::native_gates is the device-wide default capability set. A qubit
or directed edge with no local native instructions inherits the matching
one- or two-qubit defaults. A non-empty local native-instruction list is a
complete override for that physical location.
Local capabilities are never synchronized back into the device defaults,
and replacing the defaults does not remove local capabilities. Two-qubit
capabilities are ordered: support on (control, target) does not imply
support on (target, control). Calibration data describes a supported
instruction but does not create support for an otherwise unsupported one.
Native capability writers validate their inputs and return DeviceError.
Device defaults accept standard gates acting on at most two qubits, while
qubit and edge properties accept exactly one- and two-qubit standard gates,
respectively. Validation completes before mutation, so a rejected update
preserves the previous capability set.
Re-exports§
pub use device_impl::Device;pub use device_impl::EdgeProp;pub use device_impl::InstructionProp;pub use device_impl::QubitProp;pub use error::DeviceError;pub use error::DeviceValidationError;pub use error::LayoutError;pub use error::TopologyError;pub use layout::Layout;pub use noise::NoiseModel;pub use noise::OperationKey;pub use noise::ReadoutError;pub use noise::SingleQubitNoise;pub use noise::TwoQubitNoise;pub use qubit::LogicalQubit;pub use qubit::PhysicalQubit;pub use result::ExecutionResult;pub use result::Outcome;pub use result::Status;pub use topology::Topology;
Modules§
- device_
impl - Quantum Device Hardware Characteristics and Topology.
- error
- Device Error Types
- layout
- Logical-to-physical qubit layout management for circuit routing.
- noise
- Noise Model Module
- qubit
- Strongly typed qubit identifiers for device-facing APIs.
- result
- Quantum measurement results and execution status.
- topology
- Topology module for quantum device coupling graphs.