Skip to main content

Fbit

Overloads

NameDescription
Fbit(const string bitstring) -> FbitConstructs a fermionic product state from a string of consecutive characters "00" and "11".
Fbit(integer num_sites) -> FbitConstructs a fermionic product state of size num_sites with every fermionic mode set to 00.
Fbit(const string bitstring, complex coefficient) -> FbitConstructs a fermionic product state from a string of "00" and "11" with a specified complex multiplicative coefficient.
Fbit(const string bitstring, bool coefficient) -> FbitConstructs a fermionic product state from a string of "00" and "11" with a specified bool (converted to complex) multiplicative coefficient.
Fbit(const string bitstring, real coefficient) -> FbitConstructs a fermionic product state from a string of "00" and "11" with a specified real (converted to complex) multiplicative coefficient.
Fbit(const string bitstring, integer coefficient) -> FbitConstructs a fermionic product state from a string of "00" and "11" with a specified integer (converted to complex) multiplicative coefficient.
Fbit(integer num_sites, complex coefficient) -> FbitConstructs a fermionic product state of size num_sites with every fermionic mode set to 00 with a specified complex multiplicative coefficient.
Fbit(integer num_sites, bool coefficient) -> FbitConstructs a fermionic product state of size num_sites with every fermionic mode set to 00 with a specified bool (converted to complex) multiplicative coefficient.
Fbit(integer num_sites, real coefficient) -> FbitConstructs a fermionic product state of size num_sites with every fermionic mode set to 00 with a specified real (converted to complex) multiplicative coefficient.
Fbit(integer num_sites, integer coefficient) -> FbitConstructs a fermionic product state of size num_sites with every fermionic mode set to 00 with a specified integer (converted to complex) multiplicative coefficient.

Fbit(const string bitstring) -> Fbit

Constructs a fermionic product state from a string of consecutive characters "00" and "11".

Parameters

  • bitstring: A string representing the states of the fermionic modes in the product state.

Example

Fbit("00110") // Returns (1 + 0i)|00110>

Fbit(integer num_sites) -> Fbit

Constructs a fermionic product state of size num_sites with every fermionic mode set to 00.

Parameters

  • num_sites: The number of fermionic modes in the product state in a one to one correspondence with the sites.

Example

Fbit(4) // Returns (1 + 0i)|0000>

Fbit(const string bitstring, complex coefficient) -> Fbit

Constructs a fermionic product state from a string of "00" and "11" with a specified complex multiplicative coefficient.

Parameters

  • bitstring: A string representing the states of the fermionic modes in the product state.
  • coefficient: The coefficient that multiplies the fermion product state.

Example

Fbit("00110", 2.0 + 5.0i) // Returns (2 + 5i)|00110>

Fbit(const string bitstring, bool coefficient) -> Fbit

Constructs a fermionic product state from a string of "00" and "11" with a specified bool (converted to complex) multiplicative coefficient.

Parameters

  • bitstring: A string representing the states of the fermionic modes in the product state.
  • coefficient: The coefficient that multiplies the fermion product state.

Example

Fbit("00110", true) // Returns (1 + 0i)|00110>

Fbit(const string bitstring, real coefficient) -> Fbit

Constructs a fermionic product state from a string of "00" and "11" with a specified real (converted to complex) multiplicative coefficient.

Parameters

  • bitstring: A string representing the states of the fermionic modes in the product state.
  • coefficient: The coefficient that multiplies the fermion product state.

Example

Fbit("00110", 2.0) // Returns (2 + 0i)|00110>

Fbit(const string bitstring, integer coefficient) -> Fbit

Constructs a fermionic product state from a string of "00" and "11" with a specified integer (converted to complex) multiplicative coefficient.

Parameters

  • bitstring: A string representing the states of the fermionic modes in the product state.
  • coefficient: The coefficient that multiplies the fermion product state.

Example

Fbit("00110", 3) // Returns (3 + 0i)|00110>

Fbit(integer num_sites, complex coefficient) -> Fbit

Constructs a fermionic product state of size num_sites with every fermionic mode set to 00 with a specified complex multiplicative coefficient.

Parameters

  • num_sites: The number of fermionic modes in the product state in a one to one correspondence with the sites.
  • coefficient: The coefficient that multiplies the fermion product state.

Example

Fbit(4, 2.0 + 5.0i) // Returns (2 + 5i)|0000>

Fbit(integer num_sites, bool coefficient) -> Fbit

Constructs a fermionic product state of size num_sites with every fermionic mode set to 00 with a specified bool (converted to complex) multiplicative coefficient.

Parameters

  • num_sites: The number of fermionic modes in the product state in a one to one correspondence with the sites.
  • coefficient: The coefficient that multiplies the fermion product state.

Example

Fbit(4, true) // Returns (1 + 0i)|0000>

Fbit(integer num_sites, real coefficient) -> Fbit

Constructs a fermionic product state of size num_sites with every fermionic mode set to 00 with a specified real (converted to complex) multiplicative coefficient.

Parameters

  • num_sites: The number of fermionic modes in the product state in a one to one correspondence with the sites.
  • coefficient: The coefficient that multiplies the fermion product state.

Example

Fbit(4, 2.0) // Returns (2 + 0i)|0000>

Fbit(integer num_sites, integer coefficient) -> Fbit

Constructs a fermionic product state of size num_sites with every fermionic mode set to 00 with a specified integer (converted to complex) multiplicative coefficient.

Parameters

  • num_sites: The number of fermionic modes in the product state in a one to one correspondence with the sites.
  • coefficient: The coefficient that multiplies the fermion product state.

Example

Fbit(4, 3) // Returns (3 + 0i)|0000>