Fbit
Overloads
| Name | Description |
|---|---|
Fbit(const string bitstring) -> Fbit | Constructs a fermionic product state from a string of consecutive characters "" and "". |
Fbit(integer num_sites) -> Fbit | Constructs a fermionic product state of size num_sites with every fermionic mode set to . |
Fbit(const string bitstring, complex coefficient) -> Fbit | Constructs a fermionic product state from a string of "" and "" with a specified complex multiplicative coefficient. |
Fbit(const string bitstring, bool coefficient) -> Fbit | Constructs a fermionic product state from a string of "" and "" with a specified bool (converted to complex) multiplicative coefficient. |
Fbit(const string bitstring, real coefficient) -> Fbit | Constructs a fermionic product state from a string of "" and "" with a specified real (converted to complex) multiplicative coefficient. |
Fbit(const string bitstring, integer coefficient) -> Fbit | Constructs a fermionic product state from a string of "" and "" with a specified integer (converted to complex) multiplicative coefficient. |
Fbit(integer num_sites, complex coefficient) -> Fbit | Constructs a fermionic product state of size num_sites with every fermionic mode set to with a specified complex multiplicative coefficient. |
Fbit(integer num_sites, bool coefficient) -> Fbit | Constructs a fermionic product state of size num_sites with every fermionic mode set to with a specified bool (converted to complex) multiplicative coefficient. |
Fbit(integer num_sites, real coefficient) -> Fbit | Constructs a fermionic product state of size num_sites with every fermionic mode set to with a specified real (converted to complex) multiplicative coefficient. |
Fbit(integer num_sites, integer coefficient) -> Fbit | Constructs a fermionic product state of size num_sites with every fermionic mode set to 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 "" and "".
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 .
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 "" and "" 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 "" and "" 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 "" and "" 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 "" and "" 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 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 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 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 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>