paulie.application.average_pauli_weight.quantum_fourier_entropy#

paulie.application.average_pauli_weight.quantum_fourier_entropy(o)#

Finds the quantum Fourier entropy of an operator \(O\).

The quantum Fourier entropy \(H\) is given by

\[\begin{split}O &= \sum_{P \in \text{all Pauli strings}} c_P P \\ H(O) &= -\sum_{P} c_{P}^{2}\log_2 \left(c_{P}^{2}\right)\end{split}\]
Parameters:

o (numpy.ndarray) – The operator \(O\) in matrix form.

Returns:

The quantum Fourier entropy of the operator.

Return type:

float