API Reference Qx - Quantum Computing Simulator v#0.10.0
View SourceModules
Qx - A Quantum Computing Simulator for Elixir
Raised when a computational basis value is not 0 or 1.
Behaviour for multi-qubit quantum state manipulation.
Raised when a classical bit index is out of range.
Raised when there are issues with conditional operations.
Visualization for quantum simulation results.
An SVG image artifact produced by Qx.draw_bloch/2 and
Qx.draw_circuit/2.
A quantum-state table artifact produced by Qx.draw_state/2: every
basis state with its amplitude and probability, pre-rendered in
three encodings.
Placeholder base exception for Qx library errors. Not currently raised by any Qx function.
Export Qx quantum circuits to OpenQASM format and import OpenQASM 3.0
source back into a Qx.QuantumCircuit.
Raised when there are issues with gate operations.
Execute Qx circuits on real IBM Quantum hardware.
Configuration for Qx.Hardware execution against IBM Quantum via the
qxportal transpilation service.
Raised when a Qx.Hardware.Config value is invalid.
Raised by Qx.Hardware.run!/3 (and friends) when the underlying
pipeline returns {:error, {stage, reason}} and the caller asked for
a bang variant.
Raised when a circuit submitted to Qx.Hardware has no measurement
instructions.
Core mathematical and linear algebra functions for quantum mechanics calculations.
Raised when there are issues with quantum measurements.
Raised when a Qx function needs an optional dependency that the host application hasn't added.
Quantum gate operations for quantum circuits.
Raised when an option passed to a public Qx function is invalid.
Raised when a gate parameter (rotation angle or phase) is not a number.
Composite circuit-building patterns: thin wrappers that emit multiple instructions in one call.
Raised when an OpenQASM source string cannot be parsed.
Raised when an OpenQASM program uses a feature or gate that Qx does not currently support.
Functions for creating and managing quantum circuits.
Raised when the number of qubits is invalid.
Raised when a qubit index is out of range.
Raised when register construction receives invalid input.
Simulation engine for executing quantum circuits with full complex number support.
Result of quantum circuit simulation.
State initialization utilities for quantum systems.
Raised when a quantum state is not properly normalized.
Raised when a state vector's shape does not match the expected size for the target quantum circuit.
One executed operation from Qx.steps/2: what ran, where in the
circuit, and the state right after it.