Skip to main content

period

Method of Fbit.

Overloads

NameDescription
period(integer shift) -> integerReturns the number of times the fermionic modes have to be circularly shifted to the right by a number of sites equal to the provided integer before the obtained product state is equal to the starting product state.
period() -> integerReturns the number of times the fermionic modes have to be circularly shifted to the right before the obtained product state is equal to the starting product state.

period(integer shift) -> integer

Returns the number of times the fermionic modes have to be circularly shifted to the right by a number of sites equal to the provided integer before the obtained product state is equal to the starting product state.

Parameters

  • shift: The number of sites to shift.

Example

Fbit("0101").period(2) // Returns 1
Fbit("1101").period(3) // Returns 4
Fbit("1111").period(4) // Returns 1

period() -> integer

Returns the number of times the fermionic modes have to be circularly shifted to the right before the obtained product state is equal to the starting product state.

Example

Fbit("0101").period() // Returns 2
Fbit("1101").period() // Returns 4
Fbit("1111").period() // Returns 1