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.
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.
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:
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.
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.
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 |