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