openfermion.linalg.jw_sparse_particle_hole_transformation_last_mode

Return the matrix (acting on a full wavefunction) that performs a particle-hole transformation on the last mode in the Jordan-Wigner encoding.