Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.entropy

entropy(state, base=2)[소스]

Calculate the von-Neumann entropy of a quantum state.

The entropy \(S\) is given by

\[S(\rho) = - Tr[\rho \log(\rho)]\]
매개변수
반환

The von-Neumann entropy S(rho).

반환 형식

float

예외 발생

QiskitError – if the input state is not a valid QuantumState.