Skip to main content

PySCF integration plugin for the Maestro GPU quantum simulator by Qoro Quantum

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

qoro-maestro-pyscf

PySCF integration plugin for the Maestro GPU quantum simulator by Qoro Quantum.

Run quantum chemistry VQE calculations on Maestro's GPU-accelerated backends.

Installation

pip install qoro-maestro-pyscf

Quick Start — CASCI with VQE

from pyscf import gto, scf, mcscf
from qoro_maestro_pyscf import MaestroSolver

mol = gto.M(atom="H 0 0 0; H 0 0 0.74", basis="sto-3g")
hf  = scf.RHF(mol).run()

cas = mcscf.CASCI(hf, 2, 2)
cas.fcisolver = MaestroSolver(ansatz="uccsd")
cas.run()

GPU MPS Mode (Larger Active Spaces)

cas.fcisolver = MaestroSolver(
    ansatz="hardware_efficient",
    ansatz_layers=3,
    simulation="mps",         # Matrix Product State on GPU
    mps_bond_dim=128,
)

GPU Setup & Licensing

Maestro GPU simulation requires an NVIDIA GPU and a license key from Qoro Quantum. Three ways to provide your key:

Option 1 — Pass directly to the solver:

cas.fcisolver = MaestroSolver(
    ansatz="uccsd",
    license_key="XXXX-XXXX-XXXX-XXXX",
)

Option 2 — Set it once in your script:

from qoro_maestro_pyscf import set_license_key
set_license_key("XXXX-XXXX-XXXX-XXXX")

Option 3 — Environment variable (recommended for production):

export MAESTRO_LICENSE_KEY="XXXX-XXXX-XXXX-XXXX"

Note: First activation requires an internet connection (one-time). After that, the license is cached locally for offline use. No GPU? The solver automatically falls back to CPU.

Migrating from Qiskit

qiskit-nature-pyscf qoro-maestro-pyscf
from qiskit_nature_pyscf import QiskitSolver from qoro_maestro_pyscf import MaestroSolver
cas.fcisolver = QiskitSolver(algorithm) cas.fcisolver = MaestroSolver(ansatz="uccsd")
Requires Qiskit, qiskit-nature, qiskit-algorithms Zero Qiskit dependencies
CPU-only estimator GPU-accelerated (CUDA)
Statevector only Statevector + MPS

Features

  • GPU-accelerated statevector & MPS simulation via Maestro's CUDA backend
  • Automatic GPU→CPU fallback when no GPU is available
  • Drop-in PySCF solver — implements the full fcisolver protocol (kernel, make_rdm1, make_rdm1s, make_rdm12, make_rdm12s)
  • CASCI and CASSCF support (CASCI recommended; CASSCF works but VQE convergence can be tricky in the macro-iteration loop)
  • Multiple ansatze — hardware-efficient, UCCSD, UpCCD, ADAPT-VQE, and custom (inject any QuantumCircuit callable, e.g. QCC)
  • Custom Pauli evaluationevaluate_custom_paulis() bypasses Hamiltonian generation for measurement-reduction research
  • Raw state extractionget_final_statevector() for exact fidelity benchmarking against exact diagonalisation
  • UHF support — handles spin-unrestricted integrals
  • Pre-computed amplitudes — skip VQE with maxiter=0 + initial_point
  • State fidelity — compare circuit states via compute_state_fidelity()

Architecture

qoro_maestro_pyscf/
├── maestro_solver.py   # MaestroSolver — PySCF fcisolver drop-in
├── hamiltonian.py      # PySCF integrals → QubitOperator (Jordan-Wigner)
├── ansatze.py          # HF initial state, hardware-efficient, UCCSD, UpCCD
├── adapt.py            # ADAPT-VQE adaptive circuit growing
├── expectation.py      # Maestro circuit evaluation wrapper
├── rdm.py              # RDM reconstruction from VQE circuit
├── properties.py       # Dipole moments, natural orbitals
└── backends.py         # GPU/CPU/MPS backend configuration

Dependencies

Package Purpose
qoro-maestro Quantum circuit simulation (GPU/CPU)
pyscf Molecular integrals & classical reference
openfermion Jordan-Wigner mapping & RDM operators
scipy Classical parameter optimisation

Examples

See the examples/ directory for 13 worked examples and a full workflow notebook covering H₂ dissociation, LiH UCCSD, GPU benchmarking, MPS bond dimensions, CASSCF, NEVPT2, dipole moments, geometry optimisation, UpCCD paired doubles, GPU benchmarks, ADAPT-VQE, custom QCC ansatze, and iterative QCC with fidelity benchmarking.

License

Apache 2.0 — see LICENSE for details.

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

qoro_maestro_pyscf-0.4.0.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

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

qoro_maestro_pyscf-0.4.0-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file qoro_maestro_pyscf-0.4.0.tar.gz.

File metadata

  • Download URL: qoro_maestro_pyscf-0.4.0.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qoro_maestro_pyscf-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ff9d183894530ba502d739468f1b0483b5960250434dfbfbcb9bbe217bd42782
MD5 4b78a92dafc6a5a5971550036868e99e
BLAKE2b-256 3a2345d59d524db3a92e7c34f714e5695007944b547a41683371a1c0ac1d435f

See more details on using hashes here.

Provenance

The following attestation bundles were made for qoro_maestro_pyscf-0.4.0.tar.gz:

Publisher: publish.yml on QoroQuantum/maestro-pyscf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qoro_maestro_pyscf-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qoro_maestro_pyscf-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88c33549ec1aa0319c87c2442842811ebfe37451f2a96e1a9565c2ebf800cab1
MD5 7cc4173e0d9b5bbfe66a715e1a5175ba
BLAKE2b-256 4d2938b877c692eb5cbee0f23bb2d5b1a9633266bd75dd9c85bb53547e1b2b9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for qoro_maestro_pyscf-0.4.0-py3-none-any.whl:

Publisher: publish.yml on QoroQuantum/maestro-pyscf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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