translated
Method of Fbit.
Overloads
| Name | Description |
|---|---|
translated() -> Fbit | Returns a copy of the product state with its fermionic modes shifted by site to the right. |
translated(const integer shift) -> Fbit | Returns a copy of the product state with its fermionic modes shifted by site to the right a number of times equal to the provided integer. |
translated() -> Fbit
Returns a copy of the product state with its fermionic modes shifted by site to the right.
Example
Fbit("00100").translated() // Returns (1 + 0i)|00010>
translated(const integer shift) -> Fbit
Returns a copy of the product state with its fermionic modes shifted 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").translated() // Returns (1 + 0i)|00001>