German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.StabilizerState.trace

StabilizerState.trace()[Quellcode]

Return the trace of the stabilizer state as a density matrix, which equals to 1, since it is always a pure state.

Rückgabe

the trace (should equal 1).

Rückgabetyp

double

Verursacht

QiskitError – if input is not a StabilizerState.