translate
Method of Fbit.
Overloads
| Name | Description |
|---|---|
translate() -> Fbit | Circularly shifts in place the fermionic modes of the product state by site to the right. |
translate(const integer shift) -> Fbit | Circularly shifts in place the fermionic modes of the product state by 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 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 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>