qiskit.quantum_info.DensityMatrix.is_valid¶ DensityMatrix.is_valid(atol=None, rtol=None)[source]¶ Return True if trace 1 and positive semidefinite.