Repository navigation
Releases
Releases · qpiai/quantum-sdk
v0.8.0
QpiAI Quantum SDK 0.8.0
Highlights
- Composable QAOA with initial-state and mixer components, warm starts, CVaR aggregation, seeded multistart and execution budgets.
- Explicit variational parameter binding shared by QAOA and VQE, including shared angles, scales, offsets and multi-angle gates.
- Device discovery and capability-based validation through
list_devices()andDeviceRegistry. - Shared decoding across job retrieval and execution, including nested counts, statevectors, density matrices, timing and metadata.
login()can resolve an existing or environment-provided API key.GateMatrices.RYandRZwork through either the class or an instance.- Updated dependencies and a Python 3.11 minimum.
Migration notes
- Replace the removed
Backendenum andbackend=arguments withdevice_name=. An explicit execution method must match the selected device. - Select VQE energy estimation with
estimator="auto","sampled"or"exact". Device selection and energy estimation are separate choices. - Numeric angles in custom QAOA/VQE circuits are fixed unless marked with
parameterize(). Built-in ansatz builders mark their adjustable angles automatically.
from qpiai_quantum import Circuit
from qpiai_quantum.algorithms.opt import parameterize
circuit = Circuit(2)
circuit.ry(0, 0.0)
parameterize(circuit, parameter_index=0)- The unimplemented
custom_ansatzhelper has been removed. Pass aCircuitor use a supported ansatz builder. - Binary job results require a
qpiai_binary_artifactsversion 1 manifest. Legacy single-array binary results are no longer supported. JSON result handling is unchanged. - Python 3.10 is no longer supported. Upgrade to Python 3.11 or newer.
QAOA objective execution budgets do not include final sampling or provider retries. Existing per-API device and timeout defaults are retained.
v0.7.5
Fixes VQE register handling when a Hamiltonian acts on only part of the declared circuit.
- Preserve the declared qubit count for built-in and custom ansatzes, including repeated solver runs.
- Support constant Hamiltonians without attempting to construct a zero-qubit circuit.
- Reject Hamiltonians that exceed the declared register and custom ansatzes with a mismatched width, with actionable errors.
- Add focused regression coverage for exact and sampled energy evaluation, spectator qubits, constant Hamiltonians, and width validation.
For example, a three-qubit VQE solver evaluating Z0 now retains all three qubits. A constant Hamiltonian 2.5 I retains the declared register and evaluates to 2.5.