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

qiskit.quantum_info.StabilizerState.expectation_value

StabilizerState.expectation_value(oper, qargs=None)[소스]

Compute the expectation value of a Pauli operator.

매개변수
  • oper (Pauli) – a Pauli operator to evaluate expval.

  • qargs (None or list) – subsystems to apply the operator on.

반환

the expectation value (only 0 or 1 or -1 or i or -i).

반환 형식

complex

예외 발생

QiskitError – if oper is not a Pauli operator.