Japanese
言語
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

PauliExpectation

class PauliExpectation(group_paulis=True)[ソース]

ベースクラス: ExpectationBase

An Expectation converter for Pauli-basis observables by changing Pauli measurements to a diagonal ({Z, I}^n) basis and appending circuit post-rotations to the measured state function. Optionally groups the Paulis with the same post-rotations (those that commute with one another, or form Abelian groups) into single measurements to reduce circuit execution overhead.

パラメータ

group_paulis (bool) – Whether to group the Pauli measurements into commuting sums, which all have the same diagonalizing circuit.

Methods Defined Here

compute_variance

Compute the variance of the expectation estimator.

convert

Accepts an Operator and returns a new Operator with the Pauli measurements replaced by diagonal Pauli post-rotation based measurements so they can be evaluated by sampling and averaging.