Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.StabilizerState.trace

StabilizerState.trace()[código fonte]

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

Retorno

the trace (should equal 1).

Tipo de retorno

double

Levanta

QiskitError – if input is not a StabilizerState.