qiskit.algorithms.PhaseEstimationScale.from_pauli_sum¶
- classmethod PhaseEstimationScale.from_pauli_sum(pauli_sum)[ソース]¶
Create a PhaseEstimationScale from a SummedOp representing a sum of Pauli Operators.
It is assumed that the
pauli_sum
is the sum ofPauliOp
objects. The bound on the absolute value of the eigenvalues of the sum is obtained as the sum of the absolute values of the coefficients of the terms. This is the best bound available in the generic case. APhaseEstimationScale
object is instantiated using this bound.- パラメータ
pauli_sum (SummedOp | PauliSumOp | SparsePauliOp | Operator) – A
SummedOp
whose terms arePauliOp
objects.- 例外
ValueError – if
pauli_sum
is not a sum of Pauli operators.- 戻り値
A
PhaseEstimationScale
object- 戻り値の型
『PhaseEstimationScale』 | float