Divi Documentation¶
Divi is a Python library for building and running quantum programs at scale. It sits above circuit-level frameworks like PennyLane and Qiskit and handles the orchestration that practitioners usually write by hand: circuit generation, batching, error mitigation, parameter optimization, and result aggregation.
Why Divi?¶
Batteries-included algorithms — ready-to-run
VQEfor chemistry,QAOA/PCEfor combinatorial optimization,TimeEvolutionfor dynamics, andQNNfor quantum machine learning — or bring your own circuit withCustomVQA.Structured pipelines — an expand → execute → reduce model automates the path from a high-level program to executed circuits, with inspectable stages for compilation, batching, and error mitigation. See Pipelines.
Program ensembles — run many variational programs in parallel under one
ProgramEnsemble, with automatic circuit batching and aggregation. Built-in workflows cover hyperparameter sweeps, graph partitioning, and time-evolution trajectories. See Program Ensembles and Workflows.Swap backends without changing code — develop locally against
MaestroSimulator, simulate noise withQiskitSimulator, and scale up on the cloud viaQoroService— all behind the sameCircuitRunnerinterface. See Backends Guide.Integrated error mitigation — Zero-Noise Extrapolation and QuEPP plug directly into the variational loop, not as a post-processing step. See Improving Results with Error Mitigation.
New to Divi? Start with the Quick Start Guide for a five-minute VQE example and a tour of the built-in algorithms, then work through the User Guide in the sidebar.
Installation¶
Divi can be installed using uv (recommended) or pip.
If you have uv installed:
uv add qoro-divi
Or if you want to install from source:
git clone https://github.com/QoroQuantum/divi.git
cd divi
uv sync
Alternatively, you can install using pip:
pip install qoro-divi
Nightly Builds¶
Nightly development builds are published daily from main. To install the latest nightly:
pip install qoro-divi --pre
Or pin a specific nightly by date:
pip install qoro-divi==0.8.0.dev20260305
Note
Nightly builds may contain unstable or experimental features.
For production use, stick with the stable release (pip install qoro-divi).
User Guide
- Core Concepts
- Ground-State Energy Estimation with VQE
- Combinatorial Optimization with QAOA and PCE
- Hamiltonian Time Evolution
- Quantum Neural Networks
- PennyLane & Qiskit Integration
- Routing Problems (TSP & CVRP)
- Backends Guide
- Optimizers
- Program Ensembles and Workflows
- Improving Results with Error Mitigation
- Visualizing Variational Landscapes
- Pipelines
- Resuming Long-Running or Interrupted Runs
API Reference
Development