View source on GitHub |
Generate the basis vectors into the qubit basis representing all states
fqe.util.qubit_particle_number_sector(
nqubits: int,
pnum: int
) -> List[numpy.ndarray]
which have a definite particle number.
Args | |
---|---|
nqubits (int) - the number of qubits in the qpu pnum (int) - the number of particles to build vectors into |
Returns | |
---|---|
list[numpy.array(dtype=numpy.complex64)] |