Skip to main content

CUDA-Q Algorithms

CUDA-Q Algorithms is a primitive-first algorithms library built on CUDA-Q, focused on fault-tolerant quantum computing (FTQC) primitives: block encodings, qubitization, quantum singular value transformation, product formulas, and the state-preparation and fermion-to-qubit building blocks they compose with.

NISQ-era application workflows such as VQE, ADAPT-VQE, QAOA, GQE, and optimizer loops are intentionally out of scope.

Python primitives

cudaq_algorithms is a pure-Python package implemented as CUDA-Q Python kernels and host-side helpers (the only runtime requirement is the cudaq Python package):

  • fermion-to-qubit transforms (fermion.jordan_wigner, fermion.bravyi_kitaev)
  • state-preparation kernels and operator pools (stateprep)
  • Pauli LCU block encoding (PauliLCU, plus prepare/select/apply kernels)
  • sparse-access block encodings from matrix data or structure oracles (encode_sparse, SparseOracleEncoding)
  • qubitization walks and Chebyshev moment measurement (Walk)
  • QSVT phase sequences (QSVT, PhaseSequence)
  • Suzuki-Trotter product formulas (trotter.Trotter, orders 1/2/4)
  • chemistry input bridges (chemistry.from_pyscf, chemistry.from_psi4, chemistry.from_fcidump)

Simulation-only helpers (statevector access) are isolated in cudaq_algorithms.sim_utils; everything else is hardware-shaped. The documentation is a Sphinx site under docs/ (build instructions in docs/README.md); the runnable, self-verifying examples live in docs/sphinx/examples/python/.

Classical chemistry preprocessing ships as a peer pure-Python module: double factorization of two-electron integrals (X-DF and C-DF/RC-DF) on NumPy/SciPy with optional CuPy GPU acceleration — see the preprocessing guide in the Sphinx docs.

Chemistry Inputs

The library APIs operate on reusable algorithmic inputs: one- and two-body tensors, qubit Hamiltonians, Pauli words, and state-preparation operator pools. The chemistry module provides bridges that produce those inputs from electronic-structure packages — from_pyscf and from_psi4 extract molecular-orbital integrals from a converged mean-field calculation, and from_fcidump parses the standard FCIDUMP interchange format. The electronic-structure packages themselves are optional and never imported at package-import time; everything downstream of the integrals runs without them.

License

The code in this repository is licensed under the Apache License 2.0. Dependency license references and attributions are listed in NOTICE.

NOTICE AND DISCLAIMER: This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.

See CONTRIBUTING.md for contribution requirements, including Developer Certificate of Origin (DCO) sign-off.

Metadata

Release files for cudaq-algorithms 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for cudaq-algorithms 0.2.0
File Interpreter ABI Platform Actions
cudaq_algorithms-0.2.0-py3-none-any.whl Python 3 none any Details for cudaq_algorithms-0.2.0-py3-none-any.whl

Release files / cudaq_algorithms-0.2.0-py3-none-any.whl

Download URL cudaq_algorithms-0.2.0-py3-none-any.whl
Size 203.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aac76c47999763c932fc7097862ed8f4a4631d478efe812f300ded8c66dab0ce
BLAKE2b-256 checksum
How to use checksums
be7885066f3a8eeaa1a31f1ab367cef568f6f3335a33193f41f398648efa05f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for cudaq-algorithms 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page