utils
Utility functions for monoprop module.
funcjordan_wigner_basis_change(n_qubits) -> list[list[int]]Return the Jordan-Wigner basis change: the 2 * n_qubits Majoranas as gamma-slot lists.
Entry k is the slot support of the Jordan-Wigner image of Majorana m_k, in the same
two-slots-per-qubit encoding the engine's native Pauli basis uses (X_q is 2q, Y_q
is 2q+1, Z_q both), so m_\{2i\} spans 2i+1 slots via its Z prefix.
paramn_qubitsintReturns
list[list[int]]funcvalidate_basis_change(basis_change, num_modes) -> NoneValidate the basis change.
parambasis_changeNone | list[list[int]]paramnum_modesintReturns
None