Device-specific configurations and utilities for quantum circuits.
This namespace provides functions to manage device configurations, validate circuits against device constraints, and handle device-specific optimizations.
Device-specific configurations and utilities for quantum circuits. This namespace provides functions to manage device configurations, validate circuits against device constraints, and handle device-specific optimizations.
(compare-gate-support device1 device2)
Compare gate support between two backends.
Parameters:
Returns: Map with comparison results including:
Compare gate support between two backends. Parameters: - device1: First device - device2: Second device Returns: Map with comparison results including: - :device1-operations - Set of operations supported by device1 - :device2-operations - Set of operations supported by device2 - :shared-operations - Set of operations supported by both devices - :device1-only - Set of operations unique to device1 - :device2-only - Set of operations unique to device2 - :total-unique-operations - Set of all unique operations across both devices
(noise-model device)
Get the noise model of the device.
Parameters:
Returns: Noise model map or empty map if none defined
Get the noise model of the device. Parameters: - backend: Backend instance Returns: Noise model map or empty map if none defined
(supported-operations device)
Return supported operations for a device, deriving from native+virtual when missing.
Return supported operations for a device, deriving from native+virtual when missing.
(validate-circuit device circuit)
Validate a quantum circuit against device constraints.
Parameters:
Returns: Validation result map containing:
Validate a quantum circuit against device constraints. Parameters: - device: Device map containing: :supported-operations - Set of natively supported operations :coupling - Qubit coupling for hardware topology (optional) - circuit: Quantum circuit to validate Returns: Validation result map containing: - :all-gates-supported? - Boolean indicating if all gates are supported - :unsupported-gates - List of unsupported gate types (if any) - :topology-valid? - Boolean indicating if circuit respects topology (if coupling provided) - :topology-issues - List of topology issues (if any)
(validate-device device)
Normalize a device map (e.g., read from EDN).
Normalize a device map (e.g., read from EDN). - Adds :supported-operations = union(native, virtual) if missing - Leaves other keys intact
(validate-devices devices)
Normalize a collection of devices.
Normalize a collection of devices.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |