Skip to main content

translated

Method of Fbit.

Overloads

NameDescription
translated() -> FbitReturns a copy of the product state with its fermionic modes shifted by 11 site to the right.
translated(const integer shift) -> FbitReturns a copy of the product state with its fermionic modes shifted by 11 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 11 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 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").translated() // Returns (1 + 0i)|00001>