Skip to content

Supported Observables ​

What is supported ​

Pauli sums: weighted sums of tensor products of I, X, Y and Z, with complex coefficients.

FormSupportedNotes
Single Pauli stringYesSparsePauliOp("ZZI")
Weighted sum of Pauli stringsYesAll terms evaluated in one run
Complex coefficientsYesThe Qiskit estimator returns the real part
Array of observablesYesEvaluated element by element
Observable on more than 64 qubitsYesMasks span several 64-bit words
Identity term alongside other termsYesExact
Only identity termsNoRaises InternalError; add the constant yourself (details)
Non-Pauli operators (general matrices, projectors)NoNot representable
HermiticityNot checkedA non-Hermitian sum gives a complex value natively, its real part through Qiskit

Which engines can evaluate one ​

EngineCondition
DenseAlways
StabilizerThe circuit is entirely Clifford
Pauli propagationClifford gates and rz rx ry p u only, and the circuit is not entirely Clifford
MPSAlways (exact mode) within the memory budget
Tensor networkAlways, within the memory budget
Cut and recombineA cut exists (at most two cuts)

Which one runs is the planner's choice; see Plan.

Estimator-specific limits ​

MENOSEstimator additionally requires that the circuit carry no unbound parameters, and that the observable be a SparsePauliOp (or a mapping of Pauli labels to coefficients, as the Qiskit pub format produces).

Pauli Observables · SparsePauliOp · EstimatorV2

Released under the Apache-2.0 license. GitHub · PyPI