Skip to main content

translate

Method of Fbit.

Overloads

NameDescription
translate() -> FbitCircularly shifts in place the fermionic modes of the product state by 11 site to the right.
translate(const integer shift) -> FbitCircularly shifts in place the fermionic modes of the product state by 11 site to the right a number of times equal to the provided integer.

translate() -> Fbit

Circularly shifts in place the fermionic modes of the product state by 11 site to the right.

Example

Fbit("00100").translate() // Returns (1 + 0i)|00010>

translate(const integer shift) -> Fbit

Circularly shifts in place the fermionic modes of the product state by 11 site to the right a number of times equal to the provided integer.

Parameters

  • shift: The number of sites to shift.

Example

Fbit("00100").translate(2) // Returns (1 + 0i)|00001>