qiskit.quantum_info.StabilizerState.trace¶ StabilizerState.trace()[ソース]¶ Return the trace of the stabilizer state as a density matrix, which equals to 1, since it is always a pure state. 戻り値 the trace (should equal 1). 戻り値の型 double 例外 QiskitError – if input is not a StabilizerState.