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
fcisolverprotocol (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, and UpCCD (paired doubles for singlet states)
- UHF support — handles spin-unrestricted integrals
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
├── 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 9 worked examples and a full workflow notebook covering H₂ dissociation, LiH UCCSD, GPU benchmarking, MPS bond dimensions, CASSCF, NEVPT2, dipole moments, geometry optimisation, and UpCCD paired doubles.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qoro_maestro_pyscf-0.3.0.tar.gz.
File metadata
- Download URL: qoro_maestro_pyscf-0.3.0.tar.gz
- Upload date:
- Size: 30.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4307dbf464bb389bb6802487ce0f80f8204be35cc36ad778601784276925acca
|
|
| MD5 |
e35f2f72e9ae00ca41ec03ebbd47df49
|
|
| BLAKE2b-256 |
dc3b398dfd154033a20c415db478f5562a518c1c0916d5e877cdfe86b74ef718
|
Provenance
The following attestation bundles were made for qoro_maestro_pyscf-0.3.0.tar.gz:
Publisher:
publish.yml on QoroQuantum/maestro-pyscf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qoro_maestro_pyscf-0.3.0.tar.gz -
Subject digest:
4307dbf464bb389bb6802487ce0f80f8204be35cc36ad778601784276925acca - Sigstore transparency entry: 1061526712
- Sigstore integration time:
-
Permalink:
QoroQuantum/maestro-pyscf@6124fa9af3e03cf37979a572cea8de79307da45f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/QoroQuantum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6124fa9af3e03cf37979a572cea8de79307da45f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file qoro_maestro_pyscf-0.3.0-py3-none-any.whl.
File metadata
- Download URL: qoro_maestro_pyscf-0.3.0-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34c7ddc852cbb70319e0e0330cde2dd182710bcc43a84abbed42a23628300d88
|
|
| MD5 |
ebfea857bd675b42389d3969dd92870d
|
|
| BLAKE2b-256 |
0d76e0dfd0914779c95970e8aee6cfa13766ac1d9dff9df89e053e59fe0059d5
|
Provenance
The following attestation bundles were made for qoro_maestro_pyscf-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on QoroQuantum/maestro-pyscf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qoro_maestro_pyscf-0.3.0-py3-none-any.whl -
Subject digest:
34c7ddc852cbb70319e0e0330cde2dd182710bcc43a84abbed42a23628300d88 - Sigstore transparency entry: 1061526756
- Sigstore integration time:
-
Permalink:
QoroQuantum/maestro-pyscf@6124fa9af3e03cf37979a572cea8de79307da45f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/QoroQuantum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6124fa9af3e03cf37979a572cea8de79307da45f -
Trigger Event:
workflow_dispatch
-
Statement type: