qiskit.quantum_info.StabilizerState.purity¶
- StabilizerState.purity()[código fonte]¶
Return the purity of the quantum state, which equals to 1, since it is always a pure state.
- Retorno
the purity (should equal 1).
- Tipo de retorno
double
- Levanta
QiskitError – if input is not a StabilizerState.