Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.DensityMatrix.to_statevector

DensityMatrix.to_statevector(atol=None, rtol=None)[source]

Return a statevector from a pure density matrix.

প্যারামিটার
  • atol (float) -- Absolute tolerance for checking operation validity.

  • rtol (float) -- Relative tolerance for checking operation validity.

রিটার্নস

The pure density matrix's corresponding statevector.

Corresponds to the eigenvector of the only non-zero eigenvalue.

রিটার্ন টাইপ

Statevector

রেইজেস

QiskitError -- if the state is not pure.