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 do qp.add_noise models, which insert them. They raised DeviceError before. The density matrix, the MPO and the Pauli propagator apply a channel exactly: analytic results agree with default.mixed to 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 with QuantumChannel (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.var and expectation values of observables that are not Pauli words (qp.Hermitian) failed on simulation_type="DensityMatrix", "MatrixProductOperator" and "PauliPropagator", whose state has no statevector to read them from. They are computed from Pauli expectation values there (qp.probs on 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 a DeviceError that 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, and qp.expval(qp.X(0) + qp.Z(0)) returned about 0 instead of 1. It affected qp.var, qp.sample and qp.counts of an observable, expectation values of sums (Hamiltonians) and of qp.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’s estimate. 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 of shots shots 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 takes estimate, as a tape of Pauli words does.

0.7.1 - 2026-11-12

Added

  • simulator_type="Gpu" with backend="qoro" runs the jobs on Qoro’s GPU cluster (qoro_gpu), as qiskit-maestro’s device="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. See CONTRIBUTING.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 in pyproject.toml.

Fixed

  • The sdist includes the whole test suite; tests/conftest.py was missing.

0.7.0 - 2026-11-11

Added

  • backend option: "qoro" runs circuits on the Qoro cloud through Divi, and any Divi CircuitRunner (a configured QoroService, 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 Divi submit_vjp jobs on CPU statevector targets; "best" falls back to parameter-shift otherwise. Install with pip install "pennylane-maestro[cloud]" (Divi 0.16+, Python 3.11+).

  • Examples: qoro_cloud.py, hamiltonian_vqe.py, qaoa_maxcut.py and quantum_classifier.py (the last three take --cloud), with an index in examples/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_type and simulation_type default to None, which is "QCSim" / "Statevector" on the local engine as before, and lets a Divi backend choose.

  • examples/ising_phase_transition.py saves 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 implements compute_derivatives, execute_and_compute_derivatives, compute_vjp and execute_and_compute_vjp.

  • adjoint_backend option: "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.probs with the engine backend: up to 10 wires with a device Jacobian (device_vjp=False, the default), up to 24 with device_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; explicit device_vjp=False, jax.jit, and torch with a mix of broadcast and plain trainable parameters still split the batch per element.

  • Rot is a native gate.

Changed

  • Requires qoro-maestro>=0.3.8 (was >=0.3.7). Adds adjoint differentiation support via Maestro’s native AdjointProgram.

Fixed

  • qml.adjoint(qml.U3(θ, φ, λ)) applied U3(-θ, -φ, -λ) instead of U3(-θ, -λ, -φ).

  • Expectation values and variances of non-diagonal observables returned next to qml.state() or qml.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 several SimulatorConfig fields, so this release no longer works with older Maestro versions.

  • use_double_precision is now an alias for the new precision option. MaestroQubitDevice forwards precision ("single" / "double") to SimulatorConfig. The default changed from use_double_precision=False to None, which keeps each backend’s own default instead of forcing single precision. Conflicting precision and use_double_precision values, or an unknown precision string, raise a ValueError.

  • PauliPropagator options follow Maestro’s new names: pp_max_pauli_weight, pp_gates_between_trims and the new pp_gates_between_deduplications.

Added

  • New MaestroQubitDevice options forwarded to SimulatorConfig:

    • precision

    • enable_causal_cone_reduction (default True)

    • auto_reduce (default True)

    • gate_fusion (default None, i.e. backend default)

    • enable_observable_clustering (default True) and max_cluster_qubits (default None). These need a Maestro release newer than 0.3.7; on 0.3.7 they are ignored, with a UserWarning if set to a non-default value.

  • README section documenting all device options.

Deprecated

  • pp_pauli_weight_threshold → use pp_max_pauli_weight.

  • pp_steps_between_trims → use pp_gates_between_trims.

    Both still work and emit a DeprecationWarning. Passing an old and a new name with different values raises a ValueError.

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) and RZ(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_evolve failed for devices with custom wire labels (e.g. wires=["a", "b"] or wires=[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_evolve with custom wires.

0.4.1 - 2026-09-24

Added

  • Support for Maestro 0.3.3 features.

  • seed option for reproducible sampling and noise.

  • Native Delay operation support.

0.4.0 - 2026-09-06

Added

  • Incremental Trotter evolution: tapes of repeated Trotter steps with intermediate qml.Snapshot expectation values are detected and run through Maestro’s persistent-state incremental_evolve (linear instead of quadratic cost).

  • dev.incremental_evolve(...) and pennylane_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.Snapshot support in the maestro.qubit device.

Changed

  • Consecutive Pauli-expval snapshots are batched into a single estimate call.