ffsim.testing.generate_norb_nocc¶
- ffsim.testing.generate_norb_nocc(*, exhaustive=True, norb_range=None, include_norb_zero=True)[source]¶
Generate (
norb,nocc) tuples for testing.noccrefers to the occupation of a single spin species, so it ranges from 0 tonorb.- Parameters:
exhaustive (
bool) – If True, generates all possible (norb,nocc) pairs for eachnorbinnorb_range. If False, yields a small representative set covering edge cases, ignoringnorb_range.norb_range (
Iterable[int] |None) – Range of choices fornorb. Required whenexhaustive=True.include_norb_zero (
bool) – Whether to include the casenorb=0. Default: True.
- Return type: