Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.application.format.qasm2

QASM 2.0 (Quantum Assembly Language) format conversion for quantum circuits.

This namespace provides functions to convert quantum circuits to and from the OpenQASM 2.0 format, which is widely used in quantum computing platforms such as IBM Qiskit and others.

Note: OpenQASM 2.0 does not natively support some advanced gate types (e.g., global gates, Rydberg gates). Such gates are either decomposed into standard gates where possible or annotated with comments indicating that they require special handling by the backend.

QASM 2.0 (Quantum Assembly Language) format conversion for quantum circuits.

This namespace provides functions to convert quantum circuits to and from
the OpenQASM 2.0 format, which is widely used in quantum computing platforms
such as IBM Qiskit and others.

Note: OpenQASM 2.0 does not natively support some advanced gate types
(e.g., global gates, Rydberg gates). Such gates are either decomposed
into standard gates where possible or annotated with comments indicating
that they require special handling by the backend.
raw docstring

org.soulspace.qclojure.application.format.qasm2-parser

QASM2 parser and emitter using Instaparse.

This namespace provides functions to parse OpenQASM 2.0 quantum circuits into the qclojure domain model and emit qclojure circuits back to QASM2 format.

QASM2 parser and emitter using Instaparse.

This namespace provides functions to parse OpenQASM 2.0 quantum circuits
into the qclojure domain model and emit qclojure circuits back to QASM2 format.
raw docstring

org.soulspace.qclojure.application.format.qasm3

OpenQASM 3.0 conversion functions for quantum circuits with enhanced result types.

This namespace provides conversion between quantum circuit data structures and OpenQASM 3.0 format strings. QASM 3.0 is the latest version of the OpenQASM quantum assembly language with improved syntax, features, and comprehensive support for result extraction including measurements, expectation values, variance, probability, and observables.

Supported QASM 3.0 result extensions:

  • Basic measurements (c[i] = measure q[i])
  • Observable expectation values (#pragma result expectation)
  • Observable variance (#pragma result variance)
  • Probability distributions (#pragma result probability)
  • Amplitude extraction for specific states (#pragma result amplitude)
  • Sample-based measurements with shot specification (#pragma result sample)

Note: State vector and density matrix extraction are simulation-only and not included in hardware-compatible QASM output.

OpenQASM 3.0 conversion functions for quantum circuits with enhanced result types.

This namespace provides conversion between quantum circuit data structures
and OpenQASM 3.0 format strings. QASM 3.0 is the latest version of the
OpenQASM quantum assembly language with improved syntax, features, and
comprehensive support for result extraction including measurements,
expectation values, variance, probability, and observables.

Supported QASM 3.0 result extensions:
- Basic measurements (c[i] = measure q[i])
- Observable expectation values (#pragma result expectation)
- Observable variance (#pragma result variance)
- Probability distributions (#pragma result probability)
- Amplitude extraction for specific states (#pragma result amplitude)
- Sample-based measurements with shot specification (#pragma result sample)

Note: State vector and density matrix extraction are simulation-only
and not included in hardware-compatible QASM output.
raw docstring

org.soulspace.qclojure.application.format.qasm3-parser

QASM3 parser and emitter using Instaparse.

This namespace provides functions to parse OpenQASM 3.0 quantum circuits into the qclojure domain model and emit qclojure circuits back to QASM3 format.

QASM3 parser and emitter using Instaparse.

This namespace provides functions to parse OpenQASM 3.0 quantum circuits
into the qclojure domain model and emit qclojure circuits back to QASM3 format.
raw 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