Changelog¶
[0.3.0]¶
Documentation at qoroquantum.github.io/qiskit-maestro, built with Sphinx and the Qiskit ecosystem theme: the README, the guide (one page per topic), the examples, an API reference generated from the docstrings, and this changelog.
pip install -e ".[docs]"installs what it needs, and CI builds it on every push and publishes it frommain. The package’s Documentation link on PyPI now points there.The README has the Qiskit Ecosystem badge.
Pauli propagation is documented: a row in the README’s method table, and a page of the guide on setting it up with
MaestroEstimator, choosing app_coefficient_threshold, and running it on the GPU and the Qoro cloud.Three new examples, simpler than the others:
examples/getting_started.py(a Bell state on the backend, the Sampler and the Estimator),examples/simulation_methods.py(one GHZ circuit on the statevector, MPS and stabilizer methods, from 20 to 1,000 qubits) andexamples/pauli_propagation.py(the kicked Ising circuit on IBM’s 115-qubit heavy-hex lattice). The test suite runs all three.benchmarks/pauli_propagation.py, a short version of the Pauli propagation benchmark in Maestro’s documentation: accuracy against time forMaestroEstimatorand IBM’spauli-propon a kicked Ising chain.Each Aer error is one
maestro.QuantumChannel, built once and shared by every instruction it follows, ondensity_matrix,statevectorandmatrix_product_state(CPU). The density matrix applies the channel in one pass instead of a Pauli channel and a delay. The statevector and the matrix product state sample it from their own state on every shot, as Aer does: noisy circuits no longer carry an ancilla qubit, and relaxation towards a thermal population (from_backend(..., temperature=...)) is sampled too. Pauli propagation on the CPU applies the same channels exactly, to the observable, so a noisy estimate is one run: before, it took the Pauli channel and ancilla damping, which it also applies exactly, and repeated that same evaluation for each of 1,024 trajectories. With a fake device’s full noise model it gives the same values 40 to over 900 times as fast, and withpp_coefficient_threshold=1e-4noisy 27-qubit QAOA takes 0.2 s. The other methods and the GPU keep the Pauli channel and the ancilla. With a fake IBM device’s full noise model (benchmarks/noise_vs_aer.py, Aer 0.18.2, a 24-core desktop): the 12-qubit density matrix takes 2.1 s at 1,000 shots, where it took 29 s and Aer takes 2.9 s; the statevector is 2.7 to 7.9 times as fast as Aer at 6 to 20 qubits; and the matrix product state at a bond limit of 64 is 5 to 15 times as fast at 6 to 16 qubits, and takes two minutes at 20 qubits, where Aer was stopped after fifteen.Coherent errors, mixtures of unitaries and general Kraus channels on one or two qubits run on
density_matrix,statevector,matrix_product_stateandpauli_propagation(CPU), from Aer’s description of the error: as a mixture of unitaries where its circuits are unitary, and by its Kraus operators otherwise. They raisedUnsupportedNoiseErrorbefore, and still do on the other methods. CPU Pauli propagation takes them too. An error with a single unitary branch, such as a coherent over-rotation, is a gate: a circuit whose errors are all of that kind is evolved once for all its shots.The channels need
qoro-maestro0.3.15 or later, which addsQuantumChannelandQuantumCircuit.channel. The requirement stays at 0.3.14, which thecloudextra’sqoro-divipins: with it, noise runs as before, apauli_channeland the damping as an idle-noisedelayon the density matrix or through an ancilla on the other methods, and coherent and general Kraus errors raiseUnsupportedNoiseErrorsaying which release takes them.benchmarks/noise_vs_aer.pytimesMaestroBackendagainstAerSimulatorunder a fake IBM device’s noise model, after checking that they agree: in the full distribution on the density matrix, and on the sampled methods in every qubit’s marginal and in the parities of consecutive pairs and of all qubits. A matrix product state whose bond limit truncates the state is not compared with Aer’s, which truncates differently: up to 20 qubits, each simulator’s error in those statistics is reported against the exact ones, from Maestro’s statevector under the same noise. Each run records the versions of Qiskit, Aer, Maestro and the plugin, the QCSim revision Maestro was built against, the threads they could use, the circuit’s seed, the bond limit and the workers Maestro ran the noise realizations on.Result metadata gains
metadata["maestro"]["realization_workers"]: the workers Maestro ran a call’s noise realizations on, for sampled noise.
[0.2.0]¶
CI runs on every push to every branch, not only on
main, and adds Python 3.14, macOS, the Qoro cloud tests (skipped in CI before, since Divi wasn’t installed), a job with every dependency at the lowest version allowed, a coverage floor, andactionlinton the workflows. The save-instruction and OpenQASM 2 tests now pass on Qiskit 1.1 too. Dependabot keeps the workflows’ actions up to date.A shorter README, with the Qoro cloud near the top. The details moved to
docs/guide.md, and two new examples cover the cloud (examples/qoro_cloud.py) and time evolution (examples/time_evolution.py).Run on the Qoro cloud:
service=QoroService()(from Divi 0.16 or later, installed withpip install "qiskit-maestro[cloud]", which needs Python 3.11 or later and Qiskit 2.6 or later) onMaestroBackend,MaestroSamplerandMaestroEstimator. Eachrun()submits one cloud job and returns aQoroCloudJob(backend) orQoroCloudPrimitiveJob(primitives) carrying the cloud’s job ID, withstatus(),cancel(), andresult()that waits. The estimator uses the cloud’s expectation-value jobs, so its values are exact. Circuits are converted and checked locally, then sent as OpenQASM 2.0 with the simulator options as a Maestro config; results come back in the same form and bit order as local runs. Failed jobs, cloud timeouts and running out of credits raise the newQoroCloudError.device="GPU"runs on theqoro_gpucluster. Parameter sweeps go as one template per circuit with a table of parameter values, bound by the cloud, when the job’s circuits share their shots or observables. Noise models, classical control, save instructions, estimator resets andrun_evolutionraise a clear error on the cloud for now.from_backendcarries the service over.Aer noise models:
noise_model=onMaestroBackend(constructor,set_optionsorrun),MaestroSamplerandMaestroEstimator, including through Aer’soptions={"backend_options": {...}}. Each error acts where Aer applies it, per instruction name and qubits: after the instruction, or before it formeasure. Readout errors andfrom_backend’s delay relaxation apply too, and the backend’s target uses the noise model’s basis gates, as Aer’s does. Errors are written as a Pauli channel followed by amplitude damping, which covers depolarizing, Pauli, phase-damping, amplitude-damping, thermal-relaxation and reset errors and their compositions, includingNoiseModel.from_backend’s. Each translation is checked against Aer’s channel to 1e-9. Ondensity_matrixthey’re exact: results match Aer’s to about 1e-15. On pure-state methods they’re sampled per shot, with amplitude damping applied exactly through an ancilla qubit. Idle qubits are dropped from noisy circuits, as Aer does, so circuits transpiled for a 127-qubit device run quickly. Anything else, such as coherent errors, raises the newUnsupportedNoiseError, a subclass ofUnsupportedInstructionError, naming the instruction and qubits.Aer’s
save_statevector,save_statevector_dict,save_probabilities,save_probabilities_dict,save_expectation_valueandsave_expectation_value_varianceonMaestroBackend.run, returning the types Aer returns, soresult.get_statevector()andresult.data()work as on Aer. Saved statevectors include the circuit’s global phase. With noise, a saved statevector is one random trajectory’s, as on Aer, and saved probabilities and expectation values are averaged over the shots.method="automatic", Aer’s default: the statevector for noiseless circuits, and the density matrix for small noisy ones, by Aer’s rule.for_loopis unrolled, andswitchbecomes oneifblock per case value. Both are in the backend’s target, sotranspilekeeps them.Requires
qoro-maestro0.3.14, which runs a call’s noise realizations on its own workers. Noisy sampling on pure-state methods hands each parameter set’s shots to one Maestro call, withreturn_samples=Trueso that seeded runs take Maestro’s direct path, and the plugin no longer runs such calls on threads of its own. Seeded results don’t depend on the number of workers. With a device’s depolarizing and readout errors, sampling is 2.3 to 3.6 times as fast as Aer’s at 8 to 12 qubits.MaestroEstimator: a circuit with areseton a pure-state method averages 1,024 trajectories, as Aer’sEstimatorV2averages over shots, instead of following one random outcome. Density matrix stays exact.Noise models translate about 13 times faster: the plugin computes each error’s Pauli transfer matrix from its instructions, instead of through Qiskit’s
SuperOp, and falls back to Qiskit for instructions it doesn’t know. Each error’s translation is also kept for later runs while the error exists; adding to a noise model makes a new error, which is translated afresh. With the leaner conversion and outcome counting, the plugin’s own time in a noisy run fell from 6–12 ms to 3–6 ms.
[0.1.0]¶
First release.
MaestroBackend, aBackendV2with aTargetof Maestro’s native gates and all-to-all connectivity.runreturns counts and, withmemory=True, per-shot results, soBackendSamplerV2works with it.MaestroSampler, a nativeSamplerV2with full PUB support, which runs the parameter sets of a PUB in parallel.MaestroEstimator, a nativeEstimatorV2that computes expectation values from the simulated state for every method, withStatevectorEstimator’sprecisionsemantics.Methods
statevector,matrix_product_state,stabilizer,density_matrix,tensor_networkandpauli_propagation, onCPUorGPU, with Aer’s option names.Mid-circuit measurement, reset, and
if_test/elseclassical control. Conditions are evaluated with Qiskit’s semantics:A cast to a narrower
Uintkeeps the low bits, so a two-bit register holding 3 satisfiescast(register, Uint(1)) == 1. A cast of a multi-bit register toBool, which tests for non-zero, raisesUnsupportedInstructionErrorinstead of being read as a different test.A condition that can never hold, such as a clbit compared with 2 or a register compared with a value its width can’t represent, is never true. Its
ifbody is dropped and only anelsebranch runs. A clbit compared with 2 is no longer read asclbit == 1.
Time evolution on one persistent simulator, through Maestro’s incremental evolution:
MaestroEstimator.run_evolution, and automatic recognition of PUBs that repeat one step, such as one circuit per Trotter time point. Switch the automatic part off withincremental_evolution=False.MaestroSamplerreturns an emptyBitArrayof the same shape asStatevectorSamplerfor an empty parameter batch, such as bindings of shape(0, 1).Stabilizer estimates run with Maestro’s
auto_reduceoff. Maestro 0.3.10 fails some Clifford estimates with “The stabilizer simulator does not support the Rx gate” whenauto_reduceis on, for exampleXon qubit 0 of a two-qubit circuit with the observableZZ. Setauto_reduceinmaestro_optionsto override this. The workaround can go once the minimumqoro-maestrohas a fix.The source distribution includes the whole test suite,
conftest.pyandtests/__init__.pytoo, so it can be tested after extracting. CI builds both distributions and checks them withscripts/verify_dist.py.Supports Qiskit 1.1 and later, including 2.x, on Python 3.10 to 3.13.