swap
Method of Fbit.
swap(integer site_1, integer site_2) -> Fbit
This methods swaps the fermionic modes of the product state at the specified sites in place.
Parameters
- site_1: Site of the first fermionic mode to swap.
- site_2: Site of the second fermionic mode to swap.
Example
Fbit("101").swap(0,1) // Returns (1 + 0i)|011>