Skip to main content

A high-performance library for quantum information science built on top of JAX

Project description

Quax

A high-performance quantum information science library built on top of JAX.

Documentation

Check out the docs.

Features

  • Quantum Objects: States, gates and superoperators objects are defined to allow natural manipulations and operations.
  • Clear typing: Standard objects such as Unitaries, Chois and Density matrices are all typed, clarifying the nature of various objects.
  • Standard operators composition/application @, tensor products |, scalar multiplication * and powers * are defined on all quantum objects.
  • Automatic promotion Pure states and operators are automatically promoted to mixed states and superoperators when appropriate.
  • Quantum instruments Mid-circuit measurements are modeled with QuantumInstrument, supporting confusion/transition matrices, composition, and tensor products.
  • Qudit support Operations on d-dimensional qudits are supported.
  • Batch support Operating on batches or ensembles of states is supported for straightforward parallelization.

Installation

pip install rigetti-quax

Quick Example

import jax
import quax as qx

# Create a quantum state
state = qx.zero_state_vector(dims=(2,))

# Apply a unitary operation
U = qx.random_unitary(dims=(2,), key=jax.random.key(0))
final_state = U @ state

# Convert between representations
choi = qx.unitary_to_choi(U)
pauli_liouville = qx.to_pauli_liouville(choi)

Acknowledgements

Quax draws inspiration, educational material, and some code from forest-benchmarking, Rigetti's open-source library for quantum characterization, verification, and validation. We gratefully acknowledge the forest-benchmarking contributors for their foundational work on superoperator representations, quantum channel conventions, and distance metrics.

License

Copyright 2026 Rigetti & Co, LLC. Licensed under Apache License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rigetti_quax-0.6.3.tar.gz (80.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rigetti_quax-0.6.3-py3-none-any.whl (95.4 kB view details)

Uploaded Python 3

File details

Details for the file rigetti_quax-0.6.3.tar.gz.

File metadata

  • Download URL: rigetti_quax-0.6.3.tar.gz
  • Upload date:
  • Size: 80.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.1.170-210.320.amzn2023.x86_64

File hashes

Hashes for rigetti_quax-0.6.3.tar.gz
Algorithm Hash digest
SHA256 d1cbb64f9095a78e5f596c48c7b1a2ca38c841cfd81ccc960c369a85391a82d0
MD5 d8c55e409e0095cc1294551fe0b0e857
BLAKE2b-256 0848c929a360511da7b9ebedfb0c72e1b86a75fc8ef6e478a113c5972452e147

See more details on using hashes here.

File details

Details for the file rigetti_quax-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: rigetti_quax-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 95.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.1.170-210.320.amzn2023.x86_64

File hashes

Hashes for rigetti_quax-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 caa46c36c805a45ee4572a3d6fd167a2d2353ad1ec95d13931ab941c1e249fa5
MD5 d9ccacba7959e8f776957eff4add5517
BLAKE2b-256 87407db01b8a814126718ceafe7d61803d418b6a1118fa3311aa51fab98d1b91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page