Skip to main content

get_state

Method of Fbit.

get_state(integer site) -> integer

Returns the state of the fermionic mode (interpreted as an integer) at the specified site.

Parameters

  • site: The site of the fermionic mode being queried in the product state.

Example

Fbit("10101").get_state(2) // Returns 1