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 ot 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.
  • 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.5.2.tar.gz (64.3 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.5.2-py3-none-any.whl (79.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rigetti_quax-0.5.2.tar.gz
  • Upload date:
  • Size: 64.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.12.13 Linux/5.10.245-245.983.amzn2.x86_64

File hashes

Hashes for rigetti_quax-0.5.2.tar.gz
Algorithm Hash digest
SHA256 e05e550a596eb2a89830358bf7dff72817349db76c91c6b3eeed1098deef80be
MD5 1c72196bfd3feb3c354a24fa719d9a3f
BLAKE2b-256 0467831f5c8b19ecf55a851bba827e51c45255f65c385f98907cc85dd323657d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rigetti_quax-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 79.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.12.13 Linux/5.10.245-245.983.amzn2.x86_64

File hashes

Hashes for rigetti_quax-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33bc25c364cccbd7bfdb4fd10c0974a5aaa855b560f7db64d7984bee485099d8
MD5 d49c805b3cdb6ced6d806d1fb06fc9ed
BLAKE2b-256 4387d7c3fb19243f9b8819e966351a3c13ae82a70ad5e5f2d1e90d1d1682b04c

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