qlbm_utils

Functions

compute_memory_requirements(m, M_0[, include_AS, ...])

Compute number of qubits needed for each register of quantum circuit.

allocate_registers(n_qubits, n_qubits_lattice, ...)

Allocate registers of quantum circuit.

compute_binary_representations(m, M[, verbose])

Compute binary representations of important values.

map_indices_coordinates(N, coordinate_max_bin[, verbose])

Construct mappings from binary coordinate indices to coordinates.

construct_identity_matrices(M)

Construct useful identity matrices of different dimensions once.

lattice_to_vector(lattice)

Construct statevector representation of data on a lattice.

Module Contents

qlbm_utils.compute_memory_requirements(m, M_0, include_AS=False, include_AR=False, include_BC=False, verbose=False)

Compute number of qubits needed for each register of quantum circuit.

qlbm_utils.allocate_registers(n_qubits, n_qubits_lattice, n_qubits_boundary, n_qubits_direction, n_qubits_switch, n_qubits_ancilla)

Allocate registers of quantum circuit.

qlbm_utils.compute_binary_representations(m, M, verbose=False)

Compute binary representations of important values.

qlbm_utils.map_indices_coordinates(N, coordinate_max_bin, verbose=False)

Construct mappings from binary coordinate indices to coordinates.

qlbm_utils.construct_identity_matrices(M)

Construct useful identity matrices of different dimensions once.

qlbm_utils.lattice_to_vector(lattice)

Construct statevector representation of data on a lattice.