Skip to main content

flipped

Method of Fbit.

Overloads​

NameDescription
flipped() -> FbitReturns a copy of the product state with the value of all of its fermionic modes flipped.
flipped(integer site) -> FbitReturns a copy of the product state with the specified site flipped.
flipped(const List<integer> sites) -> FbitReturns a copy of the product state with the fermionic mode at the specified site flipped.

flipped() -> Fbit​

Returns a copy of the product state with the value of all of its fermionic modes flipped.

Example​

Fbit("0101").flipped() // Returns (1 + 0i)|1010>

flipped(integer site) -> Fbit​

Returns a copy of the product state with the specified site flipped.

Parameters​

  • site: Site of the fermionic mode to flip.

Example​

Fbit("00110").flipped(2) // Returns (1 + 0i)|00010>

flipped(const List<integer> sites) -> Fbit​

Returns a copy of the product state with the fermionic mode at the specified site flipped.

Parameters​

  • sites: A vector of integers representing the sites of the fermionic modes to be flipped.

Example​

Fbit("00110").flipped([0,1,3]) // Returns (1 + 0i)|11100>