utils
Utility functions for monoprop module.
funcjordan_wigner_basis_change(n_qubits) -> list[list[int]]Generate a basis change for Jordan-Wigner representation.
This function returns a list of lists, where each inner list represents a basis vector in the Jordan-Wigner representation in terms of Majoranas.
paramn_qubitsintThe number of qubits.
Returns
listA list of lists representing the basis change.
funcvalidate_basis_change(basis_change, num_modes) -> NoneValidate the basis change.
parambasis_changeNone | list[list[int]]The basis change to validate.
paramnum_modesintThe number of modes.
Returns
None