View source on GitHub |
Generate indexes corresponding to the coefficient that is associated
fqe.util.qubit_particle_number_index_spin(
nqubits: int,
pnum: int
) -> List[Tuple[int, int]]
with a specific particle number and spin
Args | |
---|---|
nqubits (int) - the number of qubits to act upon pnum (int) - the number of particles to view |
Returns | |
---|---|
list[(int int)] - tuples of integers indicating where in the qubit wavefunction the basis state corresponds to particle number and return the corresponding spin |