qiskit.quantum_info.StabilizerState.trace¶ StabilizerState.trace()[source]¶ Return the trace of the stabilizer state as a density matrix, which equals to 1, since it is always a pure state. Returns the trace (should equal 1). Return type double Raises QiskitError – if input is not a StabilizerState.