Portuguese, Brazilian
Idiomas
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.quantum_info.entropy

entropy(state, base=2)[código fonte]

Calculate the von-Neumann entropy of a quantum state.

The entropy \(S\) is given by

\[S(\rho) = - Tr[\rho \log(\rho)]\]
Parâmetros
Retorna

The von-Neumann entropy S(rho).

Tipo de retorno

float

Levanta

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