Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.DensityMatrix.expectation_value

DensityMatrix.expectation_value(oper, qargs=None)[source]

Compute the expectation value of an operator.

প্যারামিটার
  • oper (Operator) -- an operator to evaluate expval.

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

রিটার্নস

the expectation value.

রিটার্ন টাইপ

complex