We're celebrating World Quantum Day 2022! Join us

openfermion.measurements.constraint_matrix

Function to generate matrix of constraints.

n_orbitals(int): The number of orbitals in the simulation. n_fermions(int): The number of particles in the simulation.

constraint_matrix(scipy.sparse.coo_matrix): The matrix of constraints.