Repository navigation
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.