Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.SparsePauliOp.from_operator

static SparsePauliOp.from_operator(obj, atol=None, rtol=None)[소스]

Construct from an Operator objector.

Note that the cost of this construction is exponential as it involves taking inner products with every element of the N-qubit Pauli basis.

매개변수
  • obj (Operator) – an N-qubit operator.

  • atol (float) – Optional. Absolute tolerance for checking if coefficients are zero (Default: 1e-8).

  • rtol (float) – Optional. relative tolerance for checking if coefficients are zero (Default: 1e-5).

반환

the SparsePauliOp representation of the operator.

반환 형식

SparsePauliOp

예외 발생

QiskitError – if the input operator is not an N-qubit operator.