Skip to content

Releases

v0.8.0

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.

v0.7.5

Choose a tag to compare

@krishna-ajay krishna-ajay released this 13 Oct 06:36

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.