inserted
Method of Fbit.
Overloads
| Name | Description |
|---|---|
inserted(const integer site) -> Fbit | Returns a copy of the product state with a fermionic mode in the "" state inserted on the left of the fermionic mode at the specified site. |
inserted(const integer site, const bool value) -> Fbit | Returns a copy of the product state with a fermionic mode in the "" state inserted on the left of the fermionic mode at the specified site. |
inserted(const integer site, const integer value) -> Fbit | Returns a copy of the product state with a fermionic mode in the "" state inserted on the left of the fermionic mode at the specified site. |
inserted(const integer site) -> Fbit
Returns a copy of the product state with a fermionic mode in the "" state inserted on the left of the fermionic mode at the specified site.
Parameters
- site: The site of the fermionic mode being queried in the product state.
Example
Fbit("0011").inserted(2) // Returns (1 + 0i)|00101>
Fbit("0011").inserted(4) // Returns (1 + 0i)|00110>
// Fbit("0011").inserted(5) //Error "The specified site is out of bound."
inserted(const integer site, const bool value) -> Fbit
Returns a copy of the product state with a fermionic mode in the "" state inserted on the left of the fermionic mode at the specified site.
Parameters
- site: The site of the fermionic mode being queried in the product state.
- value: The value of the inserted state (0 or 1)
Example
Fbit("0011").inserted(2) // Returns (1 + 0i)|00101>
Fbit("0011").inserted(4) // Returns (1 + 0i)|00110>
// Fbit("0011").inserted(5) //Error "The specified site is out of bound."
inserted(const integer site, const integer value) -> Fbit
Returns a copy of the product state with a fermionic mode in the "" state inserted on the left of the fermionic mode at the specified site.
Parameters
- site: The site of the fermionic mode being queried in the product state.
- value: The value of the inserted state (0 or 1)
Example
Fbit("0011").inserted(2) // Returns (1 + 0i)|00101>
Fbit("0011").inserted(4) // Returns (1 + 0i)|00110>
// Fbit("0011").inserted(5) //Error "The specified site is out of bound."