Skip to main content

fbit_range

fbit_range(integer num_sites) -> FbitRange

Creates a range of Fbit objects with the specified number of sites.

The fbit_range function represents an ordered list of all the possible product state of fermionic modes with a number of sites equal to the provided integer. The Fbit objects are ordered according to the integer representation of their states when interpreted as the binary expansion of an integer.

Parameters

  • num_sites: Number of sites in each fermionic product state.

Example

fbit_range(2) // Returns [(1 + 0i)|00>, (1 + 0i)|10>, (1 + 0i)|01>, (1 + 0i)|11>]