Constructs a projector mapping states to a certain particle number.
References syten::MPS::Operator::lIdx, syten::MPS::Operator::rIdx, SYTEN_ASSERT_DEBUG, and syten::MPS::Operator::uIdx.