Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.domain.device

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.
raw docstring

compare-gate-supportclj

(compare-gate-support device1 device2)

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
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
sourceraw docstring

noise-modelclj

(noise-model device)

Get the noise model of the device.

Parameters:

  • backend: Backend instance

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
sourceraw docstring

supported-operationsclj

(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.
sourceraw docstring

validate-circuitclj

(validate-circuit device circuit)

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 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)
sourceraw docstring

validate-deviceclj

(validate-device device)

Normalize a device map (e.g., read from EDN).

  • Adds :supported-operations = union(native, virtual) if missing
  • Leaves other keys intact
Normalize a device map (e.g., read from EDN).
- Adds :supported-operations = union(native, virtual) if missing
- Leaves other keys intact
sourceraw docstring

validate-devicesclj

(validate-devices devices)

Normalize a collection of devices.

Normalize a collection of devices.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close