Spanish
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.algorithms.PhaseEstimationScale.from_pauli_sum

classmethod PhaseEstimationScale.from_pauli_sum(pauli_sum)[fuente]

Create a PhaseEstimationScale from a SummedOp representing a sum of Pauli Operators.

It is assumed that the pauli_sum is the sum of PauliOp 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. A PhaseEstimationScale object is instantiated using this bound.

Parámetros

pauli_sum (SummedOp | PauliSumOp | SparsePauliOp | Operator) – A SummedOp whose terms are PauliOp objects.

Muestra

ValueError – if pauli_sum is not a sum of Pauli operators.

Tipo del valor devuelto

PhaseEstimationScale” | float

Devuelve

A PhaseEstimationScale object