Skip to content

v0.8.0

Latest

Choose a tag to compare

@krishna-ajay krishna-ajay released this 05 Nov 11:32

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() and DeviceRegistry.
  • 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.RY and RZ work through either the class or an instance.
  • Updated dependencies and a Python 3.11 minimum.

Migration notes

  • Replace the removed Backend enum and backend= arguments with device_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_ansatz helper has been removed. Pass a Circuit or use a supported ansatz builder.
  • Binary job results require a qpiai_binary_artifacts version 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.