monoprop

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_qubitsint

The number of qubits.

Returns

list

A list of lists representing the basis change.

funcvalidate_basis_change(basis_change, num_modes) -> None

Validate the basis change.

parambasis_changeNone | list[list[int]]

The basis change to validate.

paramnum_modesint

The number of modes.

Returns

None