Skip to main content

split

Method of Fbit.

Overloads

NameDescription
split(const List<integer> left_sites, const List<integer> right_sites) -> ListSplits the product state into a pair of Fbit objects according to a specified set of states for the resulting left and right product state.
split(const integer length_a, const integer length_b) -> ListSplits the Fbit into two parts, returning a list containing the resulting left and right fermionic product states.

split(const List<integer> left_sites, const List<integer> right_sites) -> List

Splits the product state into a pair of Fbit objects according to a specified set of states for the resulting left and right product state.

By convention, the coefficient is stored in the leftmost fermionic product state after the split.

Parameters

  • left_sites: The sites of the Fbit oject that will be used to construct the left product state.
  • right_sites: The sites of the Fbit oject that will be used to construct the right product state.

Example

Fbit("001101", 2.0 + 1.0i).split([0,2,3],[1,4,5]) // Returns [(2 + 1i)|011>, (1 + 0i)|001>]

split(const integer length_a, const integer length_b) -> List

Splits the Fbit into two parts, returning a list containing the resulting left and right fermionic product states.

By convention, the coefficient is stored the left fermionic product state after the split.

Parameters

  • length_a: Length (number of fermions) for the first part.
  • length_b: Length (number of fermions) for the second part.

Returns

A list containing the left and right fermionic product state of size length_a and length_b.

Example

Fbit("110010",5.0).split(4,2) // Returns [(5 + 0i)|1100>, (1 + 0i)|10>]