Skip to main content

inserted

Method of Fbit.

Overloads

NameDescription
inserted(const integer site) -> FbitReturns a copy of the product state with a fermionic mode in the "00" state inserted on the left of the fermionic mode at the specified site.
inserted(const integer site, const bool value) -> FbitReturns a copy of the product state with a fermionic mode in the "00" state inserted on the left of the fermionic mode at the specified site.
inserted(const integer site, const integer value) -> FbitReturns a copy of the product state with a fermionic mode in the "00" 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 "00" 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 "00" 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 "00" 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."