flipped
Method of Fbit.
Overloads
| Name | Description |
|---|---|
flipped(const List<integer> sites) -> Fbit | Returns a copy of the product state with the fermionic mode at the specified site flipped. |
flipped(integer site) -> Fbit | Returns a copy of the product state with the specified site flipped. |
flipped() -> Fbit | Returns a copy of the product state with the value of all of its fermionic modes flipped. |
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>
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() -> 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>