Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.DensityMatrix.expectation_value

DensityMatrix.expectation_value(oper, qargs=None)[código fonte]

Compute the expectation value of an operator.

Parâmetros
  • oper (Operator) – an operator to evaluate expval.

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

Retorno

the expectation value.

Tipo de retorno

complex