Changelog¶
All notable changes to pennylane-maestro are documented here. The format
follows Keep a Changelog, and the
project uses Semantic Versioning (pre-1.0: minor
releases may contain breaking changes).
Unreleased¶
0.8.0 - 2026-11-18¶
Added¶
Noise channels. PennyLane’s channel operations on one or two wires (
AmplitudeDamping,GeneralizedAmplitudeDamping,PhaseDamping,DepolarizingChannel,BitFlip,PhaseFlip,PauliError,ResetError,ThermalRelaxationError,QubitChannel) run on the local engine, and so doqp.add_noisemodels, which insert them. They raisedDeviceErrorbefore. The density matrix, the MPO and the Pauli propagator apply a channel exactly: analytic results agree withdefault.mixedto rounding. The statevector and the MPS sample it, one Kraus branch each time the circuit runs, so a noisy circuit needs shots there (the device says so) and each shot is its own run; expectation values of Pauli words average one run per shot. Relaxation is passed in Maestro’s own form after checking it against PennyLane’s Kraus operators; generalized amplitude damping is recognized under both meanings PennyLane has given its second parameter (the excited population, or its complement in 0.42). Gradients of noisy circuits use parameter-shift. Needs a qoro-maestro withQuantumChannel(0.3.15 or later); an older one raises an error that says so, and everything else works as before. See the new Noise page of the guide.A documentation site, at qoroquantum.github.io/pennylane-maestro, built with Sphinx: the README’s overview, the guide (one page per topic), the example scripts, an API reference from the docstrings, and this changelog. The Docs workflow builds it on every pull request, failing on any Sphinx warning, and publishes it from
main.pip install -e ".[docs]"installs what the build needs, and the README and the PyPI Documentation link point at the site.
Fixed¶
Analytic
qp.probs,qp.varand expectation values of observables that are not Pauli words (qp.Hermitian) failed onsimulation_type="DensityMatrix","MatrixProductOperator"and"PauliPropagator", whose state has no statevector to read them from. They are computed from Pauli expectation values there (qp.probson up to 16 wires, always a distribution: an entry that rounding or a truncated state leaves below zero is set to zero and the rest scaled to sum to one).qp.state()on those methods raises aDeviceErrorthat says why.With shots, a measurement of an observable that is not diagonal in the computational basis was computed from computational-basis samples, without rotating into the observable’s basis first: on
|+>,qp.var(qp.X(0))returned 1 instead of 0, andqp.expval(qp.X(0) + qp.Z(0))returned about 0 instead of 1. It affectedqp.var,qp.sampleandqp.countsof an observable, expectation values of sums (Hamiltonians) and ofqp.Hermitian, and, with native mid-circuit measurements, Pauli expectation values too. Only a tape of nothing but Pauli-word expectation values was right, since it takes Maestro’sestimate. Now every measurement reads samples taken after the gates that diagonalize its observable. Measurements that need different bases on a wire are sampled in separate runs ofshotsshots each (one run per basis, not per measurement), and a sum of Pauli words that do not commute is measured word by word. A tape of expectation values of such sums alone takesestimate, as a tape of Pauli words does.
0.7.1 - 2026-11-12¶
Added¶
simulator_type="Gpu"withbackend="qoro"runs the jobs on Qoro’s GPU cluster (qoro_gpu), as qiskit-maestro’sdevice="GPU"does. Gradients there use parameter-shift, since Maestro’s adjoint method needs the CPU statevector.
Changed¶
Releases follow qiskit-maestro’s flow: publishing a GitHub release, or running the Publish to PyPI workflow by hand (with a dry-run option), runs the tests, builds and verifies the distributions with
scripts/verify_dist.py, uploads them to PyPI and makes sure the GitHub release exists. SeeCONTRIBUTING.md.The version is set only in
pyproject.toml;pennylane_maestro.__version__reads it from the installed package.
Removed¶
setup.py, which repeated the metadata inpyproject.toml.
Fixed¶
The sdist includes the whole test suite;
tests/conftest.pywas missing.
0.7.0 - 2026-11-11¶
Added¶
backendoption:"qoro"runs circuits on the Qoro cloud through Divi, and any DiviCircuitRunner(a configuredQoroService,MaestroSimulator, …) can be passed instead. Each batch of tapes becomes at most one expectation-value job and one counts job. Adjoint derivatives of analytic Pauli/Hamiltonian expectation values run as Divisubmit_vjpjobs on CPU statevector targets;"best"falls back to parameter-shift otherwise. Install withpip install "pennylane-maestro[cloud]"(Divi 0.16+, Python 3.11+).Examples:
qoro_cloud.py,hamiltonian_vqe.py,qaoa_maxcut.pyandquantum_classifier.py(the last three take--cloud), with an index inexamples/README.md.docs/guide.md, with the options, gradients, cloud, time-evolution and benchmark details that used to be in the README. Benchmarks re-run on PennyLane 0.45.1 and qoro-maestro 0.3.14.
Changed¶
simulator_typeandsimulation_typedefault toNone, which is"QCSim"/"Statevector"on the local engine as before, and lets a Divi backend choose.examples/ising_phase_transition.pysaves its figure without opening a window, so it runs unattended.
Removed¶
examples/ising_vqe_pipeline_demo.py, which used Divi APIs that no longer exist;backend="qoro"now covers its cloud stage.
0.6.0 - 2026-10-26¶
Added¶
Adjoint differentiation on the CPU statevector for analytic expectation values of Pauli strings, tensor products and Hamiltonians/Sums.
diff_method="best"now resolves to"adjoint"there instead of parameter-shift. The device implementscompute_derivatives,execute_and_compute_derivatives,compute_vjpandexecute_and_compute_vjp.adjoint_backendoption:"engine"(Maestro’s batched adjoint sweep,maestro.AdjointProgram; default via"auto") or"inner_product"(inner-product fallback).Broadcast tapes with analytic Pauli expectation values run as one batched engine call instead of one tape per batch element (needs
maestro.AdjointProgram).Adjoint differentiation of
qml.probswith the engine backend: up to 10 wires with a device Jacobian (device_vjp=False, the default), up to 24 withdevice_vjp=True. Broadcast tapes returning probabilities also run as one batched engine call.Trainable broadcast parameters (e.g. data re-uploading,
qml.Rot(w * x + b)) stay in one batched engine call when differentiated with a device VJP, which returns one gradient entry per batch element.diff_method="best"selects the device VJP for such circuits; explicitdevice_vjp=False,jax.jit, and torch with a mix of broadcast and plain trainable parameters still split the batch per element.Rotis a native gate.
Changed¶
Requires
qoro-maestro>=0.3.8(was>=0.3.7). Adds adjoint differentiation support via Maestro’s nativeAdjointProgram.
Fixed¶
qml.adjoint(qml.U3(θ, φ, λ))appliedU3(-θ, -φ, -λ)instead ofU3(-θ, -λ, -φ).Expectation values and variances of non-diagonal observables returned next to
qml.state()orqml.probs()(and in non-Pauli snapshots) were computed without rotating into the observable’s eigenbasis.
0.5.0 - 2026-10-21¶
Changed¶
Requires
qoro-maestro>=0.3.7(was>=0.3.3). Maestro 0.3.7 renamed severalSimulatorConfigfields, so this release no longer works with older Maestro versions.use_double_precisionis now an alias for the newprecisionoption.MaestroQubitDeviceforwardsprecision("single"/"double") toSimulatorConfig. The default changed fromuse_double_precision=FalsetoNone, which keeps each backend’s own default instead of forcing single precision. Conflictingprecisionanduse_double_precisionvalues, or an unknown precision string, raise aValueError.PauliPropagator options follow Maestro’s new names:
pp_max_pauli_weight,pp_gates_between_trimsand the newpp_gates_between_deduplications.
Added¶
New
MaestroQubitDeviceoptions forwarded toSimulatorConfig:precisionenable_causal_cone_reduction(defaultTrue)auto_reduce(defaultTrue)gate_fusion(defaultNone, i.e. backend default)enable_observable_clustering(defaultTrue) andmax_cluster_qubits(defaultNone). These need a Maestro release newer than 0.3.7; on 0.3.7 they are ignored, with aUserWarningif set to a non-default value.
README section documenting all device options.
Deprecated¶
pp_pauli_weight_threshold→ usepp_max_pauli_weight.pp_steps_between_trims→ usepp_gates_between_trims.Both still work and emit a
DeprecationWarning. Passing an old and a new name with different values raises aValueError.
Fixed¶
Wrong results from the Trotter snapshot fast path. Repeated-step detection compared gate parameters with
np.isclose, so segments with slightly different angles (e.g.RZ(40.0)andRZ(40.0003)) were treated as the same step and simulated with the wrong angles, silently. Parameters must now match exactly. Genuine repeated Trotter steps are unaffected.MaestroQubitDevice.incremental_evolvefailed for devices with custom wire labels (e.g.wires=["a", "b"]orwires=[0, 2]). Operations and observables are now mapped from device wires to qubit indices.
Tests¶
Added coverage for precision handling, legacy and new PauliPropagator names, reduction flags, gate fusion, clustering options, the exact-match parameter fix and
incremental_evolvewith custom wires.
0.4.1 - 2026-09-24¶
Added¶
Support for Maestro 0.3.3 features.
seedoption for reproducible sampling and noise.Native
Delayoperation support.
0.4.0 - 2026-09-06¶
Added¶
Incremental Trotter evolution: tapes of repeated Trotter steps with intermediate
qml.Snapshotexpectation values are detected and run through Maestro’s persistent-stateincremental_evolve(linear instead of quadratic cost).dev.incremental_evolve(...)andpennylane_maestro.incremental_evolve(...)for calling the engine directly.PauliPropagator configuration parameters and automatic GPU backend initialisation.
0.3.2 - 2026-06-24¶
Added¶
PauliPropagator configuration support.
Changed¶
Faster batched estimation for Hamiltonian measurements.
0.3.1 - 2026-06-24¶
Added¶
qml.Snapshotsupport in themaestro.qubitdevice.
Changed¶
Consecutive Pauli-expval snapshots are batched into a single estimate call.