| """ |
| Definitions for contractions in this module. |
| """ |
|
|
| from collections import Counter |
|
|
| import opt_einsum |
|
|
| from typing import Dict, Optional, Union, List, Tuple, Sequence |
|
|
| Definition = Dict[ |
| str, |
| List[Union[List[Union[str, List[str]]], List[Union[Tuple[int], List[Tuple[int]]]]]], |
| ] |
|
|
|
|
| class Definitions: |
| """ |
| Class to define the contractions used along in this package. |
| |
| The convention used for the ordering of the tensors is for a single PEPS |
| tensor:: |
| |
| single = [PEPS tensor, relevant CTM tensors starting at C1 and then clockwise] |
| |
| which is repeated for each PEPS tensor and its environment in the ordering |
| fixed x and all corresponding y values in increasing order and then the next |
| x value in increasing order. For example for a quadratic four site the |
| structure would look like:: |
| |
| (x, y) - (x, y+1) |
| | | |
| (x+1, y) - (x+1, y+1) |
| |
| tensors = [single(x, y), single(x, y+1), single(x+1, y), single(x+1, y+1)] |
| |
| Using this convention each contraction is specified in the format:: |
| |
| contraction_name = { |
| "tensors": [ |
| [Relevant elements for first single PEPS tensors incl. env], |
| [Relevant elements for second single PEPS tensors incl. env], |
| ..., |
| "Optional string elements indicating additional non-PEPS tensors (e.g. gates)" |
| ], |
| "network": [ |
| [ |
| (Axes for first element of the tensors for first PEPS Tensor), |
| (Axes for second element of the tensors for first PEPS Tensor) |
| ], |
| [ |
| (Axes for first element of the tensors for second PEPS Tensor), |
| (Axes for second element of the tensors for second PEPS Tensor) |
| ], |
| ..., |
| (Axes for additional non-PEPS tensors) |
| ] |
| } |
| |
| The axes are hereby specified in the ncon format where positive numbers |
| describes the axes to be contracted and negative number the open axes |
| after the contraction. |
| The elements are strings indicating the elements of the PEPS tensor object |
| elements. Hereby the special element "tensor_conj" describes the |
| conjugated and transposed PEPS tensor. |
| """ |
|
|
| @staticmethod |
| def _create_filter_and_network( |
| contraction: Definition, |
| name: str, |
| ) -> Tuple[ |
| List[Sequence[str]], |
| List[str], |
| List[List[Tuple[int, ...]]], |
| List[Tuple[int, ...]], |
| ]: |
| filter_peps_tensors: List[Sequence[str]] = [] |
| filter_additional_tensors: List[str] = [] |
|
|
| network_peps_tensors: List[List[Tuple[int, ...]]] = [] |
| network_additional_tensors: List[Tuple[int, ...]] = [] |
|
|
| for t in contraction["tensors"]: |
| if isinstance(t, (list, tuple)): |
| if len(filter_additional_tensors) != 0: |
| raise ValueError(f'Invalid specification for contraction "{name}".') |
|
|
| filter_peps_tensors.append(t) |
| else: |
| filter_additional_tensors.append(t) |
|
|
| for n in contraction["network"]: |
| if isinstance(n, (list, tuple)) and all( |
| isinstance(ni, (list, tuple)) for ni in n |
| ): |
| if len(network_additional_tensors) != 0: |
| raise ValueError(f'Invalid specification for contraction "{name}".') |
|
|
| network_peps_tensors.append(n) |
| elif isinstance(n, (list, tuple)) and all(isinstance(ni, int) for ni in n): |
| network_additional_tensors.append(n) |
| else: |
| raise ValueError(f'Invalid specification for contraction "{name}".') |
|
|
| if len(network_peps_tensors) != len(filter_peps_tensors) or not all( |
| len(network_peps_tensors[i]) == len(filter_peps_tensors[i]) |
| for i in range(len(filter_peps_tensors)) |
| ): |
| raise ValueError(f'Invalid specification for contraction "{name}".') |
|
|
| return ( |
| filter_peps_tensors, |
| filter_additional_tensors, |
| network_peps_tensors, |
| network_additional_tensors, |
| ) |
|
|
| @classmethod |
| def _convert_to_einsum(cls, network): |
| max_contracted = 0 |
| min_open = 0 |
|
|
| result = tuple([] for _ in range(len(network))) |
|
|
| for ti, t in enumerate(network): |
| for i in t: |
| if i < 0 and i < min_open: |
| min_open = i |
| elif i > 0 and i > max_contracted: |
| max_contracted = i |
| if max_contracted >= (min_open + 52): |
| raise ValueError("Letters in conversion are overlapping.") |
|
|
| result[ti].append(opt_einsum.get_symbol(i)) |
|
|
| result = ["".join(e) for e in result] |
| open_result = [opt_einsum.get_symbol(i) for i in range(-1, min_open - 1, -1)] |
|
|
| result = f"{','.join(result)}->{''.join(open_result)}" |
|
|
| return result |
|
|
| @classmethod |
| def _process_def(cls, e, name): |
| ( |
| filter_peps_tensors, |
| filter_additional_tensors, |
| network_peps_tensors, |
| network_additional_tensors, |
| ) = cls._create_filter_and_network(e, name) |
|
|
| ncon_network = [ |
| j for i in network_peps_tensors for j in i |
| ] + network_additional_tensors |
|
|
| einsum_network = cls._convert_to_einsum(ncon_network) |
|
|
| flatted_ncon_list = [j for i in ncon_network for j in i] |
| counter_ncon_list = Counter(flatted_ncon_list) |
| for ind, c in counter_ncon_list.items(): |
| if (ind > 0 and c != 2) or (ind < 0 and c != 1) or ind == 0: |
| raise ValueError( |
| f'Invalid definition found for "{name}": Element {ind:d} has counter {c:d}.' |
| ) |
| sorted_ncon_list = sorted(c for c in counter_ncon_list if c > 0) |
| if len(sorted_ncon_list) != sorted_ncon_list[-1]: |
| raise ValueError( |
| f'Non-monotonous indices in definition "{name}". Please check!' |
| ) |
|
|
| e["filter_peps_tensors"] = filter_peps_tensors |
| e["filter_additional_tensors"] = filter_additional_tensors |
| e["network_peps_tensors"] = network_peps_tensors |
| e["network_additional_tensors"] = network_additional_tensors |
| e["ncon_network"] = ncon_network |
| e["einsum_network"] = einsum_network |
|
|
| @classmethod |
| def _prepare_defs(cls): |
| for name in dir(cls): |
| if name == "add_def" or name == "join_defs" or name.startswith("_"): |
| continue |
|
|
| e = getattr(cls, name) |
|
|
| cls._process_def(e, name) |
|
|
| @classmethod |
| def add_def(cls, name, definition): |
| cls._process_def(definition, name) |
| setattr(cls, name, definition) |
|
|
| @classmethod |
| def join_defs(cls, name1, name2, join_indices): |
| new_name = f"joined_{name1}_{name2}_{join_indices}" |
| if getattr(cls, new_name, None) is not None: |
| return new_name |
|
|
| if len(join_indices[0]) != len(join_indices[1]): |
| raise ValueError("Length of join indices mismatches.") |
|
|
| def1 = getattr(cls, name1) |
| def2 = getattr(cls, name2) |
|
|
| new_def = {} |
|
|
| new_def["tensors"] = list(def1["tensors"]) + list(def2["tensors"]) |
|
|
| def1_flatten = [j for i in def1["ncon_network"] for j in i] |
| max1 = max(def1_flatten) |
| min1 = min(def1_flatten) |
| def2_flatten = [j for i in def2["ncon_network"] for j in i] |
| max2 = max(def2_flatten) |
| min2 = min(def2_flatten) |
|
|
| new_def["network"] = [] |
|
|
| def map_join_indices(i, offset, neg_offset, indices_map): |
| if i > 0: |
| return i + offset |
| elems_joined_before = 0 |
| for pos, j in enumerate(indices_map): |
| if i == j: |
| return max1 + max2 + pos + 1 |
| if j > i: |
| elems_joined_before += 1 |
| return i + elems_joined_before - neg_offset |
|
|
| def gen_new_network_entry(n, offset, neg_offset, indices_map): |
| if isinstance(n, (list, tuple)) and all( |
| isinstance(ni, (list, tuple)) for ni in n |
| ): |
| new_entry = [] |
| for e in n: |
| new_entry.append( |
| tuple( |
| map_join_indices(i, offset, neg_offset, indices_map) |
| for i in e |
| ) |
| ) |
| return new_entry |
| elif isinstance(n, (list, tuple)) and all(isinstance(ni, int) for ni in n): |
| return tuple( |
| map_join_indices(i, offset, neg_offset, indices_map) for i in n |
| ) |
|
|
| for n in def1["network"]: |
| new_def["network"].append(gen_new_network_entry(n, 0, 0, join_indices[0])) |
|
|
| for n in def2["network"]: |
| new_def["network"].append( |
| gen_new_network_entry( |
| n, max1, -min1 - len(join_indices[0]), join_indices[1] |
| ) |
| ) |
|
|
| cls.add_def(new_name, new_def) |
|
|
| return new_name |
|
|
| density_matrix_one_site: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "C1", "T1", "C2", "T2", "C3", "T3", "C4", "T4"] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_one_site_C1_phase: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "C1_phase", |
| "T1", |
| "C2", |
| "T2", |
| "C3", |
| "T3", |
| "C4", |
| "T4", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_one_site_C2_phase: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "C1", |
| "T1", |
| "C2_phase", |
| "T2", |
| "C3", |
| "T3", |
| "C4", |
| "T4", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_one_site_C3_phase: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "C1", |
| "T1", |
| "C2", |
| "T2", |
| "C3_phase", |
| "T3", |
| "C4", |
| "T4", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_one_site_C4_phase: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "C1", |
| "T1", |
| "C2", |
| "T2", |
| "C3", |
| "T3", |
| "C4_phase", |
| "T4", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_one_site_T1_phase: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "C1", |
| "T1_phase", |
| "C2", |
| "T2", |
| "C3", |
| "T3", |
| "C4", |
| "T4", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_one_site_T2_phase: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "C1", |
| "T1", |
| "C2", |
| "T2_phase", |
| "C3", |
| "T3", |
| "C4", |
| "T4", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_one_site_T3_phase: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "C1", |
| "T1", |
| "C2", |
| "T2", |
| "C3", |
| "T3_phase", |
| "C4", |
| "T4", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_one_site_T4_phase: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "C1", |
| "T1", |
| "C2", |
| "T2", |
| "C3", |
| "T3", |
| "C4", |
| "T4_phase", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 7, -1, 10, 9), |
| (13, 14, -2, 15, 16), |
| (2, 12), |
| (12, 9, 16, 3), |
| (3, 8), |
| (10, 15, 4, 8), |
| (11, 4), |
| (1, 11, 14, 7), |
| (1, 5), |
| (5, 13, 6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_two_sites_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "C1", "T1", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (5, 9, -1, -4, 4), |
| (7, 10, -2, -5, 6), |
| (1, 3), |
| (3, 4, 6, -3), |
| (2, -6, 10, 9), |
| (2, 8), |
| (8, 7, 5, 1), |
| ] |
| ], |
| } |
|
|
| density_matrix_two_sites_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "C2", "T2", "T3", "C3"]], |
| "network": [ |
| [ |
| (-2, 8, -5, 5, 4), |
| (-3, 9, -6, 7, 6), |
| (-1, 4, 6, 3), |
| (3, 1), |
| (5, 7, 10, 1), |
| (-4, 2, 9, 8), |
| (2, 10), |
| ] |
| ], |
| } |
|
|
| density_matrix_two_sites_top: Definition = { |
| "tensors": [["tensor", "tensor_conj", "C1", "T1", "C2", "T2", "T4"]], |
| "network": [ |
| [ |
| (8, -4, -1, 4, 5), |
| (9, -5, -2, 6, 7), |
| (2, 10), |
| (10, 5, 7, 1), |
| (1, 3), |
| (4, 6, -6, 3), |
| (-3, 9, 8, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_two_sites_bottom: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2", "C3", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (4, 5, -5, 8, -2), |
| (6, 7, -6, 9, -3), |
| (8, 9, 2, -4), |
| (10, 2), |
| (1, 10, 7, 5), |
| (1, 3), |
| (3, 6, 4, -1), |
| ] |
| ], |
| } |
|
|
| density_matrix_two_sites_horizontal_rectangle: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1"], |
| ["tensor", "tensor_conj", "T3"], |
| "top_left", |
| "top_right", |
| "bottom_left", |
| "bottom_right", |
| ], |
| "network": [ |
| [ |
| (5, 11, 9, 19, 6), |
| (7, 13, 9, 20, 8), |
| (4, 6, 8, 18), |
| ], |
| [ |
| (10, 16, 14, 25, 11), |
| (12, 17, 14, 26, 13), |
| (15, 24, 17, 16), |
| ], |
| (-1, -3, 1, 2, 3, 4, 5, 7), |
| (18, 19, 20, 21, 22, 23), |
| ( |
| 15, |
| 12, |
| 10, |
| 1, |
| 2, |
| 3, |
| ), |
| (-2, -4, 21, 22, 23, 24, 26, 25), |
| ], |
| } |
|
|
| density_matrix_two_sites_vertical_rectangle: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4"], |
| ["tensor", "tensor_conj", "T2"], |
| "top_left", |
| "top_right", |
| "bottom_left", |
| "bottom_right", |
| ], |
| "network": [ |
| [ |
| (6, 19, 9, 11, 5), |
| (8, 20, 9, 13, 7), |
| (18, 8, 6, 4), |
| ], |
| [ |
| (11, 22, 14, 16, 10), |
| (13, 23, 14, 17, 12), |
| (16, 17, 21, 15), |
| ], |
| (-1, -3, 4, 5, 7, 1, 2, 3), |
| (1, 2, 3, 15, 12, 10), |
| (24, 25, 26, 18, 19, 20), |
| (-2, -4, 21, 23, 22, 24, 25, 26), |
| ], |
| } |
|
|
| density_matrix_four_sites_top_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4", "C1", "T1"]], |
| "network": [ |
| [ |
| (3, -4, -1, -7, 4), |
| (5, -5, -2, -8, 6), |
| (-3, 5, 3, 1), |
| (1, 2), |
| (2, 4, 6, -6), |
| ] |
| ], |
| } |
|
|
| density_matrix_four_sites_top_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "C2", "T2"]], |
| "network": [ |
| [ |
| (-4, -8, -1, 4, 3), |
| (-5, -7, -2, 6, 5), |
| (-3, 3, 5, 1), |
| (1, 2), |
| (4, 6, -6, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_four_sites_bottom_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (3, 4, -1, -5, -7), |
| (5, 6, -2, -4, -8), |
| (2, -3, 6, 4), |
| (2, 1), |
| (1, 5, 3, -6), |
| ] |
| ], |
| } |
|
|
| density_matrix_four_sites_bottom_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2", "T3", "C3"]], |
| "network": [ |
| [ |
| (-8, 3, -1, 4, -5), |
| (-7, 5, -2, 6, -4), |
| (4, 6, 2, -3), |
| (-6, 1, 5, 3), |
| (1, 2), |
| ] |
| ], |
| } |
|
|
| density_matrix_three_sites_triangle_without_top_left: Definition = { |
| "tensors": ["top-left", "top-right", "bottom-left", "bottom-right"], |
| "network": [ |
| (10, 11, 12, 1, 2, 3), |
| (-1, -4, 1, 2, 3, 4, 5, 6), |
| (-2, -5, 7, 8, 9, 10, 11, 12), |
| (-3, -6, 4, 5, 6, 7, 8, 9), |
| ], |
| } |
|
|
| ctmrg_top_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4", "C1", "T1"]], |
| "network": [ |
| [ |
| (3, -2, 7, -5, 4), |
| (5, -3, 7, -6, 6), |
| (-1, 5, 3, 1), |
| (1, 2), |
| (2, 4, 6, -4), |
| ] |
| ], |
| } |
| """ |
| .. figure:: /images/ctmrg_top_left.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for top left CTM corner with contraction order shown. |
| |
| Contraction for top left CTM corner. |
| |
| \\ |
| """ |
|
|
| ctmrg_top_left_large_d = { |
| "tensors": [["tensor", "tensor_conj", "T4", "C1", "T1"]], |
| "network": [ |
| [ |
| (4, -2, 3, -5, 5), |
| (6, -3, 3, -6, 7), |
| (-1, 6, 4, 1), |
| (1, 2), |
| (2, 5, 7, -4), |
| ] |
| ], |
| } |
| """ |
| .. figure:: /images/ctmrg_top_left_large_d.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for top left CTM corner for high dimensions with contraction order shown. |
| |
| Contraction for top left CTM corner for high physical dimensions. |
| |
| \\ |
| """ |
|
|
| ctmrg_top_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "C2", "T2"]], |
| "network": [ |
| [ |
| (-2, -6, 7, 4, 3), |
| (-3, -5, 7, 6, 5), |
| (-1, 3, 5, 1), |
| (1, 2), |
| (4, 6, -4, 2), |
| ] |
| ], |
| } |
| """ |
| .. figure:: /images/ctmrg_top_right.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for top right CTM corner with contraction order shown. |
| |
| Contraction for top right CTM corner. |
| |
| \\ |
| """ |
|
|
| ctmrg_top_right_large_d: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "C2", "T2"]], |
| "network": [ |
| [ |
| (-2, -6, 3, 5, 4), |
| (-3, -5, 3, 7, 6), |
| (-1, 4, 6, 1), |
| (1, 2), |
| (5, 7, -4, 2), |
| ] |
| ], |
| } |
| """ |
| .. figure:: /images/ctmrg_top_right_large_d.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for top right CTM corner for high dimensions with contraction order shown. |
| |
| Contraction for top right CTM corner for high physical dimensions. |
| |
| \\ |
| """ |
|
|
| ctmrg_bottom_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (3, 4, 7, -3, -5), |
| (5, 6, 7, -2, -6), |
| (2, -1, 6, 4), |
| (2, 1), |
| (1, 5, 3, -4), |
| ] |
| ], |
| } |
| """ |
| .. figure:: /images/ctmrg_bottom_left.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for bottom left CTM corner with contraction order shown. |
| |
| Contraction for bottom left CTM corner. |
| |
| \\ |
| """ |
|
|
| ctmrg_bottom_left_large_d: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (4, 5, 3, -3, -5), |
| (6, 7, 3, -2, -6), |
| (2, -1, 7, 5), |
| (2, 1), |
| (1, 6, 4, -4), |
| ] |
| ], |
| } |
| """ |
| .. figure:: /images/ctmrg_bottom_left_large_d.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for bottom left CTM corner for high dimensions with contraction order shown. |
| |
| Contraction for bottom left CTM corner for high physical dimensions. |
| |
| \\ |
| """ |
|
|
| ctmrg_bottom_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2", "T3", "C3"]], |
| "network": [ |
| [ |
| (-6, 3, 7, 4, -3), |
| (-5, 5, 7, 6, -2), |
| (4, 6, 2, -1), |
| (-4, 1, 5, 3), |
| (1, 2), |
| ] |
| ], |
| } |
| """ |
| .. figure:: /images/ctmrg_bottom_right.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for bottom right CTM corner with contraction order shown. |
| |
| Contraction for bottom right CTM corner. |
| |
| \\ |
| """ |
|
|
| ctmrg_bottom_right_large_d: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2", "T3", "C3"]], |
| "network": [ |
| [ |
| (-6, 4, 3, 5, -3), |
| (-5, 6, 3, 7, -2), |
| (5, 7, 2, -1), |
| (-4, 1, 6, 4), |
| (1, 2), |
| ] |
| ], |
| } |
| """ |
| .. figure:: /images/ctmrg_bottom_right_large_d.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for bottom right CTM corner for high dimensions with contraction order shown. |
| |
| Contraction for bottom right CTM corner for high physical dimensions. |
| |
| \\ |
| """ |
|
|
| ctmrg_split_transfer_top: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T4_bra", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, -2, 12, 8, 5), |
| (10, -4, 12, 14, 11), |
| (-1, 10, 9), |
| (9, 6, 1), |
| (1, 2), |
| (2, 5, 7), |
| (7, 11, 3), |
| (3, 4), |
| (13, 8, 4), |
| (-3, 14, 13), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_bottom: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T2_ket", |
| "T2_bra", |
| "C3", |
| "T3_bra", |
| "T3_ket", |
| "C4", |
| "T4_bra", |
| "T4_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (14, 11, 12, 10, -4), |
| (8, 5, 12, 6, -2), |
| (9, 10, -1), |
| (4, 6, 9), |
| (3, 4), |
| (7, 5, 3), |
| (2, 11, 7), |
| (2, 1), |
| (1, 8, 13), |
| (13, 14, -3), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_left: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T3_bra", |
| "T3_ket", |
| "C4", |
| "T4_bra", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| "T1_bra", |
| ] |
| ], |
| "network": [ |
| [ |
| (5, 8, 12, -4, 6), |
| (11, 14, 12, -2, 10), |
| (13, 14, -1), |
| (1, 8, 13), |
| (1, 2), |
| (2, 11, 7), |
| (7, 5, 3), |
| (3, 4), |
| (4, 6, 9), |
| (9, 10, -3), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_right: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| "C3", |
| "T3_bra", |
| "T3_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (-2, 10, 12, 11, 14), |
| (-4, 5, 12, 6, 8), |
| (-1, 14, 13), |
| (13, 8, 1), |
| (1, 2), |
| (7, 11, 2), |
| (3, 6, 7), |
| (4, 3), |
| (9, 5, 4), |
| (-3, 10, 9), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_top_full: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T4_bra", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| "T1_bra", |
| ], |
| [ |
| "tensor", |
| "tensor_conj", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| ], |
| "projector_left_bottom_ket", |
| "projector_right_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (4, 7, 10, 23, 5), |
| (9, -2, 10, 24, 11), |
| (1, 9, 6), |
| (6, 4, 3), |
| (3, 2), |
| (2, 5, 8), |
| (8, 11, 25), |
| ], |
| [ |
| (23, -4, 20, 21, 22), |
| (24, 15, 20, 16, 18), |
| (25, 22, 19), |
| (19, 18, 13), |
| (13, 12), |
| (17, 21, 12), |
| (14, 16, 17), |
| ], |
| (-1, 1, 7), |
| (14, 15, -3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_left_top_half: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T4_bra", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| "T1_bra", |
| ], |
| "projector_left_bottom_ket", |
| "projector_top_right_ket", |
| ], |
| "network": [ |
| [ |
| (5, 8, 13, 10, 6), |
| (11, -2, 13, -4, 12), |
| (1, 11, 7), |
| (7, 5, 2), |
| (2, 3), |
| (3, 6, 9), |
| (9, 12, 4), |
| ], |
| (-1, 1, 8), |
| (4, 10, -3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_right_top_half: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| ], |
| "projector_top_left_ket", |
| "projector_right_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (5, -4, 13, 8, 6), |
| (-2, 10, 13, 9, 12), |
| (1, 6, 7), |
| (7, 12, 2), |
| (2, 3), |
| (11, 8, 3), |
| (4, 9, 11), |
| ], |
| (-1, 1, 5), |
| (4, 10, -3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_bottom_full: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T4_ket", |
| "T4_bra", |
| "C4", |
| "T3_ket", |
| "T3_bra", |
| ], |
| [ |
| "tensor", |
| "tensor_conj", |
| "T3_ket", |
| "T3_bra", |
| "C3", |
| "T2_bra", |
| "T2_ket", |
| ], |
| "projector_left_top_ket", |
| "projector_right_top_bra", |
| ], |
| "network": [ |
| [ |
| (16, 18, 20, 25, 15), |
| (21, 22, 20, 24, -4), |
| (17, 16, 14), |
| (12, 21, 17), |
| (13, 12), |
| (13, 18, 19), |
| (19, 22, 23), |
| ], |
| [ |
| (25, 11, 10, 9, -2), |
| (24, 5, 10, 4, 7), |
| (23, 11, 8), |
| (8, 5, 2), |
| (2, 3), |
| (3, 4, 6), |
| (6, 9, 1), |
| ], |
| (14, 15, -3), |
| (-1, 1, 7), |
| ], |
| } |
|
|
| ctmrg_split_transfer_left_bottom_half: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T4_ket", |
| "T4_bra", |
| "C4", |
| "T3_ket", |
| "T3_bra", |
| ], |
| "projector_left_top_ket", |
| "projector_bottom_right_bra", |
| ], |
| "network": [ |
| [ |
| (5, 8, 13, -2, 6), |
| (12, 10, 13, 9, -4), |
| (7, 5, 1), |
| (2, 12, 7), |
| (3, 2), |
| (3, 8, 11), |
| (11, 10, 4), |
| ], |
| (1, 6, -3), |
| (-1, 4, 9), |
| ], |
| } |
|
|
| ctmrg_split_transfer_right_bottom_half: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T3_ket", |
| "T3_bra", |
| "C3", |
| "T2_bra", |
| "T2_ket", |
| ], |
| "projector_bottom_right_bra", |
| "projector_right_top_bra", |
| ], |
| "network": [ |
| [ |
| (-4, 11, 13, 12, -2), |
| (8, 5, 13, 6, 10), |
| (1, 11, 7), |
| (7, 5, 2), |
| (2, 3), |
| (3, 6, 9), |
| (9, 12, 4), |
| ], |
| (1, 8, -3), |
| (-1, 4, 10), |
| ], |
| } |
|
|
| ctmrg_split_transfer_left_full: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T1_bra", |
| "T1_ket", |
| "C1", |
| "T4_ket", |
| "T4_bra", |
| ], |
| [ |
| "tensor", |
| "tensor_conj", |
| "T4_ket", |
| "T4_bra", |
| "C4", |
| "T3_ket", |
| "T3_bra", |
| ], |
| "projector_top_right_ket", |
| "projector_bottom_right_bra", |
| ], |
| "network": [ |
| [ |
| (4, 24, 10, 7, 5), |
| (11, 25, 10, -4, 9), |
| (6, 9, 1), |
| (3, 5, 6), |
| (2, 3), |
| (8, 4, 2), |
| (23, 11, 8), |
| ], |
| [ |
| (22, 21, 20, -2, 24), |
| (18, 16, 20, 15, 25), |
| (19, 22, 23), |
| (13, 18, 19), |
| (12, 13), |
| (12, 21, 17), |
| (17, 16, 14), |
| ], |
| (1, 7, -3), |
| (-1, 14, 15), |
| ], |
| } |
|
|
| ctmrg_split_transfer_right_full: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "tensor_conj", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| ], |
| [ |
| "tensor", |
| "tensor_conj", |
| "T2_ket", |
| "T2_bra", |
| "C3", |
| "T3_bra", |
| "T3_ket", |
| ], |
| "projector_top_left_ket", |
| "projector_bottom_left_bra", |
| ], |
| "network": [ |
| [ |
| (15, 25, 20, 18, 16), |
| (-2, 24, 20, 22, 21), |
| (14, 16, 17), |
| (17, 21, 12), |
| (12, 13), |
| (19, 18, 13), |
| (23, 22, 19), |
| ], |
| [ |
| (-4, 9, 10, 11, 25), |
| (7, 5, 10, 4, 24), |
| (8, 11, 23), |
| (2, 4, 8), |
| (3, 2), |
| (6, 5, 3), |
| (1, 9, 6), |
| ], |
| (-1, 14, 15), |
| (1, 7, -3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_left_top: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| "T1_bra", |
| ] |
| ], |
| "network": [ |
| [ |
| (3, -2, -4, -6, 4), |
| (-1, 3, 1), |
| (1, 2), |
| (2, 4, 5), |
| (5, -3, -5), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_left_bottom: Definition = { |
| "tensors": [ |
| [ |
| "tensor_conj", |
| "T4_bra", |
| "C4", |
| "T3_ket", |
| "T3_bra", |
| ] |
| ], |
| "network": [ |
| [ |
| (4, 5, -6, -2, -5), |
| (1, 4, -3), |
| (2, 1), |
| (2, -4, 3), |
| (3, 5, -1), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_right_top: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (-2, -4, -6, 4, 5), |
| (-1, 5, 3), |
| (3, -5, 2), |
| (2, 1), |
| (-3, 4, 1), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_right_bottom: Definition = { |
| "tensors": [ |
| [ |
| "tensor_conj", |
| "T2_bra", |
| "C3", |
| "T3_bra", |
| "T3_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (-6, 4, -4, 3, -3), |
| (1, 3, -1), |
| (2, 1), |
| (5, 4, 2), |
| (-5, -2, 5), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_top_left: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "T4_bra", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (4, -2, -6, -4, 3), |
| (-1, -5, 5), |
| (5, 4, 2), |
| (2, 1), |
| (1, 3, -3), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_top_right: Definition = { |
| "tensors": [ |
| [ |
| "tensor_conj", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| ] |
| ], |
| "network": [ |
| [ |
| (-3, -6, -4, 5, 4), |
| (-1, 4, 1), |
| (1, 2), |
| (3, -2, 2), |
| (-5, 5, 3), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_bottom_left: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "T4_ket", |
| "T4_bra", |
| "C4", |
| "T3_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (5, 4, -4, -2, -6), |
| (3, 5, -5), |
| (2, -3, 3), |
| (1, 2), |
| (1, 4, -1), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_bottom_right: Definition = { |
| "tensors": [ |
| [ |
| "tensor_conj", |
| "T3_bra", |
| "C3", |
| "T2_bra", |
| "T2_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (-5, 4, -6, 3, -2), |
| (-3, 4, 2), |
| (2, 1), |
| (1, 3, 5), |
| (5, -4, -1), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_top: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (5, -2, -5, 8, 6), |
| (-1, 5, 1), |
| (1, 2), |
| (2, 6, 7), |
| (7, -4, 3), |
| (3, 4), |
| (-3, 8, 4), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_bottom: Definition = { |
| "tensors": [ |
| [ |
| "tensor_conj", |
| "T2_bra", |
| "C3", |
| "T3_bra", |
| "T3_ket", |
| "C4", |
| "T4_bra", |
| ] |
| ], |
| "network": [ |
| [ |
| (8, 6, -3, 5, -2), |
| (1, 5, -1), |
| (2, 1), |
| (7, 6, 2), |
| (3, -5, 7), |
| (3, 4), |
| (4, 8, -4), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_left: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "T3_ket", |
| "C4", |
| "T4_bra", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| ] |
| ], |
| "network": [ |
| [ |
| (6, 8, -3, -5, 5), |
| (4, 8, -1), |
| (4, 3), |
| (3, -2, 7), |
| (7, 6, 2), |
| (2, 1), |
| (1, 5, -4), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_right: Definition = { |
| "tensors": [ |
| [ |
| "tensor_conj", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| "C3", |
| "T3_bra", |
| ] |
| ], |
| "network": [ |
| [ |
| (-4, 5, -5, 6, 8), |
| (-1, 8, 4), |
| (4, 3), |
| (7, -2, 3), |
| (2, 6, 7), |
| (1, 2), |
| (-3, 5, 1), |
| ] |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_top_full: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "T4_ket", |
| "C1", |
| "T1_ket", |
| "T1_bra", |
| ], |
| [ |
| "tensor", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| ], |
| "projector_left_bottom_ket", |
| "projector_right_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (3, 6, -3, 16, 4), |
| (5, 3, 1), |
| (1, 2), |
| (2, 4, 7), |
| (7, -2, 15), |
| ], |
| [ |
| (16, -5, -6, 13, 14), |
| (15, 14, 12), |
| (12, 11, 8), |
| (8, 9), |
| (10, 13, 9), |
| ], |
| (-1, 5, 6), |
| (10, 11, -4), |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_bottom_full: Definition = { |
| "tensors": [ |
| [ |
| "tensor_conj", |
| "T4_bra", |
| "C4", |
| "T3_ket", |
| "T3_bra", |
| ], |
| [ |
| "tensor_conj", |
| "T3_ket", |
| "T3_bra", |
| "C3", |
| "T2_bra", |
| ], |
| "projector_left_top_phys", |
| "projector_right_top_phys", |
| ], |
| "network": [ |
| [ |
| (13, 14, -6, 16, -5), |
| (9, 13, 10), |
| (8, 9), |
| (8, 11, 12), |
| (12, 14, 15), |
| ], |
| [ |
| (16, 4, -3, 3, 6), |
| (15, -2, 7), |
| (7, 4, 2), |
| (2, 1), |
| (1, 3, 5), |
| ], |
| (10, 11, -4), |
| (-1, 5, 6), |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_left_full: Definition = { |
| "tensors": [ |
| [ |
| "tensor", |
| "T1_ket", |
| "C1", |
| "T4_ket", |
| "T4_bra", |
| ], |
| [ |
| "tensor", |
| "T4_ket", |
| "T4_bra", |
| "C4", |
| "T3_ket", |
| ], |
| "projector_top_right_phys", |
| "projector_bottom_right_phys", |
| ], |
| "network": [ |
| [ |
| (4, 16, -6, 6, 3), |
| (1, 3, 5), |
| (2, 1), |
| (7, 4, 2), |
| (15, -5, 7), |
| ], |
| [ |
| (14, 13, -3, -2, 16), |
| (12, 14, 15), |
| (8, 11, 12), |
| (9, 8), |
| (9, 13, 10), |
| ], |
| (5, 6, -4), |
| (-1, 10, 11), |
| ], |
| } |
|
|
| ctmrg_split_transfer_phys_right_full: Definition = { |
| "tensors": [ |
| [ |
| "tensor_conj", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| ], |
| [ |
| "tensor_conj", |
| "T2_ket", |
| "T2_bra", |
| "C3", |
| "T3_bra", |
| ], |
| "projector_top_left_phys", |
| "projector_bottom_left_phys", |
| ], |
| "network": [ |
| [ |
| (-2, 16, -3, 14, 13), |
| (10, 13, 9), |
| (9, 8), |
| (12, 11, 8), |
| (15, 14, 12), |
| ], |
| [ |
| (6, 3, -6, 4, 16), |
| (7, -5, 15), |
| (2, 4, 7), |
| (1, 2), |
| (5, 3, 1), |
| ], |
| (-1, 10, 11), |
| (5, 6, -4), |
| ], |
| } |
|
|
| ctmrg_absorption_left_C1: Definition = { |
| "tensors": [["C1", "T1"], "projector_left_bottom"], |
| "network": [ |
| [ |
| (2, 1), |
| (1, 3, 4, -2), |
| ], |
| (-1, 2, 3, 4), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_L_C1.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C1 during left absorption with contraction order shown. |
| |
| Contraction for C1 during left absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_left_C1_phase_1: Definition = { |
| "tensors": [["C1_phase", "T1"], "projector_left_bottom"], |
| "network": [ |
| [ |
| (2, 1), |
| (1, 3, 4, -2), |
| ], |
| (-1, 2, 3, 4), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_L_C1.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C1 during left absorption with contraction order shown. |
| |
| Contraction for C1 during left absorption. Here C1 is the tensor with |
| structure factor phase included which is grown by a normal T1 tensor. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_left_C1_phase_2: Definition = { |
| "tensors": [["C1", "T1_phase"], "projector_left_bottom"], |
| "network": [ |
| [ |
| (2, 1), |
| (1, 3, 4, -2), |
| ], |
| (-1, 2, 3, 4), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_L_C1.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C1 during left absorption with contraction order shown. |
| |
| Contraction for C1 during left absorption. Here C1 is the tensor with |
| structure factor phase not included yet which is grown by a T1 tensor |
| which includes a phase already. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_left_T4: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4"], |
| "projector_left_top", |
| "projector_left_bottom", |
| ], |
| "network": [ |
| [ |
| (3, 8, 6, -3, 2), |
| (4, 9, 6, -2, 5), |
| (7, 4, 3, 1), |
| ], |
| (1, 2, 5, -4), |
| (-1, 7, 8, 9), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_L_T4.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for T4 during left absorption with contraction order shown. |
| |
| Contraction for T4 during left absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_left_T4_large_d: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4"], |
| "projector_left_top", |
| "projector_left_bottom", |
| ], |
| "network": [ |
| [ |
| (4, 8, 2, -3, 3), |
| (5, 9, 2, -2, 6), |
| (7, 5, 4, 1), |
| ], |
| (1, 3, 6, -4), |
| (-1, 7, 8, 9), |
| ], |
| } |
|
|
| ctmrg_absorption_left_T4_large_d_phase_1: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4_phase"], |
| "projector_left_top", |
| "projector_left_bottom", |
| ], |
| "network": [ |
| [ |
| (4, 8, 2, -3, 3), |
| (5, 9, 2, -2, 6), |
| (7, 5, 4, 1), |
| ], |
| (1, 3, 6, -4), |
| (-1, 7, 8, 9), |
| ], |
| } |
|
|
| ctmrg_absorption_left_T4_large_d_phase_2: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4"], |
| "projector_left_top", |
| "projector_left_bottom", |
| "structure_factor_gate", |
| ], |
| "network": [ |
| [ |
| (5, 9, 2, -3, 4), |
| (6, 10, 3, -2, 7), |
| (8, 6, 5, 1), |
| ], |
| (1, 4, 7, -4), |
| (-1, 8, 9, 10), |
| (2, 3), |
| ], |
| } |
|
|
| ctmrg_absorption_left_C4: Definition = { |
| "tensors": [["T3", "C4"], "projector_left_top"], |
| "network": [ |
| [ |
| (1, -1, 4, 3), |
| (1, 2), |
| ], |
| (2, 3, 4, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_L_C4.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C4 during left absorption with contraction order shown. |
| |
| Contraction for C4 during left absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_left_C4_phase_1: Definition = { |
| "tensors": [["T3", "C4_phase"], "projector_left_top"], |
| "network": [ |
| [ |
| (1, -1, 4, 3), |
| (1, 2), |
| ], |
| (2, 3, 4, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_L_C4.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C4 during left absorption with contraction order shown. |
| |
| Contraction for C4 during left absorption. Here C4 is the tensor with |
| structure factor phase included which is grown by a normal T3 tensor. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_left_C4_phase_2: Definition = { |
| "tensors": [["T3_phase", "C4"], "projector_left_top"], |
| "network": [ |
| [ |
| (1, -1, 4, 3), |
| (1, 2), |
| ], |
| (2, 3, 4, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_L_C4.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C4 during left absorption with contraction order shown. |
| |
| Contraction for C4 during left absorption. Here C3 is the tensor with |
| structure factor phase not included yet which is grown by a T3 tensor |
| which includes a phase already. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_right_C2: Definition = { |
| "tensors": [["T1", "C2"], "projector_right_bottom"], |
| "network": [ |
| [ |
| (-1, 3, 4, 1), |
| (1, 2), |
| ], |
| (2, 4, 3, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_R_C2.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C2 during right absorption with contraction order shown. |
| |
| Contraction for C2 during right absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_right_C2_phase_1: Definition = { |
| "tensors": [["T1", "C2_phase"], "projector_right_bottom"], |
| "network": [ |
| [ |
| (-1, 3, 4, 1), |
| (1, 2), |
| ], |
| (2, 4, 3, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_R_C2.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C2 during right absorption with contraction order shown. |
| |
| Contraction for C2 during right absorption. Here C2 is the tensor with |
| structure factor phase included which is grown by a normal T1 tensor. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_right_C2_phase_2: Definition = { |
| "tensors": [["T1_phase", "C2"], "projector_right_bottom"], |
| "network": [ |
| [ |
| (-1, 3, 4, 1), |
| (1, 2), |
| ], |
| (2, 4, 3, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_R_C2.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C2 during right absorption with contraction order shown. |
| |
| Contraction for C2 during right absorption. Here C2 is the tensor with |
| structure factor phase not included yet which is grown by a T1 tensor |
| which includes a phase already. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_right_T2: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2"], |
| "projector_right_top", |
| "projector_right_bottom", |
| ], |
| "network": [ |
| [ |
| (-1, 8, 6, 3, 2), |
| (-2, 9, 6, 5, 4), |
| (3, 5, 7, 1), |
| ], |
| (-4, 1, 4, 2), |
| (7, 9, 8, -3), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_R_T2.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for T2 during right absorption with contraction order shown. |
| |
| Contraction for T2 during right absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_right_T2_large_d: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2"], |
| "projector_right_top", |
| "projector_right_bottom", |
| ], |
| "network": [ |
| [ |
| (-1, 8, 2, 4, 3), |
| (-2, 9, 2, 6, 5), |
| (4, 6, 7, 1), |
| ], |
| (-4, 1, 5, 3), |
| (7, 9, 8, -3), |
| ], |
| } |
|
|
| ctmrg_absorption_right_T2_large_d_phase_1: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2_phase"], |
| "projector_right_top", |
| "projector_right_bottom", |
| ], |
| "network": [ |
| [ |
| (-1, 8, 2, 4, 3), |
| (-2, 9, 2, 6, 5), |
| (4, 6, 7, 1), |
| ], |
| (-4, 1, 5, 3), |
| (7, 9, 8, -3), |
| ], |
| } |
|
|
| ctmrg_absorption_right_T2_large_d_phase_2: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2"], |
| "projector_right_top", |
| "projector_right_bottom", |
| "structure_factor_gate", |
| ], |
| "network": [ |
| [ |
| (-1, 9, 2, 5, 4), |
| (-2, 10, 3, 7, 6), |
| (5, 7, 8, 1), |
| ], |
| (-4, 1, 6, 4), |
| (8, 10, 9, -3), |
| (2, 3), |
| ], |
| } |
|
|
| ctmrg_absorption_right_C3: Definition = { |
| "tensors": [["C3", "T3"], "projector_right_top"], |
| "network": [ |
| [ |
| (1, 2), |
| (-1, 1, 4, 3), |
| ], |
| (-2, 2, 4, 3), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_R_C3.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C3 during right absorption with contraction order shown. |
| |
| Contraction for C3 during right absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_right_C3_phase_1: Definition = { |
| "tensors": [["C3_phase", "T3"], "projector_right_top"], |
| "network": [ |
| [ |
| (1, 2), |
| (-1, 1, 4, 3), |
| ], |
| (-2, 2, 4, 3), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_R_C3.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C3 during right absorption with contraction order shown. |
| |
| Contraction for C3 during right absorption. Here C3 is the tensor with |
| structure factor phase included which is grown by a normal T3 tensor. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_right_C3_phase_2: Definition = { |
| "tensors": [["C3", "T3_phase"], "projector_right_top"], |
| "network": [ |
| [ |
| (1, 2), |
| (-1, 1, 4, 3), |
| ], |
| (-2, 2, 4, 3), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_R_C3.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C3 during right absorption with contraction order shown. |
| |
| Contraction for C3 during right absorption. Here C3 is the tensor with |
| structure factor phase not included yet which is grown by a T3 tensor |
| which includes a phase already. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_top_C1: Definition = { |
| "tensors": [["T4", "C1"], "projector_top_right"], |
| "network": [ |
| [ |
| (-1, 4, 3, 1), |
| (1, 2), |
| ], |
| (2, 3, 4, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_U_C1.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C1 during top absorption with contraction order shown. |
| |
| Contraction for C1 during top absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_top_C1_phase_1: Definition = { |
| "tensors": [["T4", "C1_phase"], "projector_top_right"], |
| "network": [ |
| [ |
| (-1, 4, 3, 1), |
| (1, 2), |
| ], |
| (2, 3, 4, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_U_C1.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C1 during top absorption with contraction order shown. |
| |
| Contraction for C1 during top absorption. Here C1 is the tensor with |
| structure factor phase included which is grown by a normal T4 tensor. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_top_C1_phase_2: Definition = { |
| "tensors": [["T4_phase", "C1"], "projector_top_right"], |
| "network": [ |
| [ |
| (-1, 4, 3, 1), |
| (1, 2), |
| ], |
| (2, 3, 4, -2), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_U_C1.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C1 during top absorption with contraction order shown. |
| |
| Contraction for C1 during top absorption. Here C1 is the tensor with |
| structure factor phase not included yet which is grown by a T4 tensor |
| which includes a phase already. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_top_T1: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1"], |
| "projector_top_left", |
| "projector_top_right", |
| ], |
| "network": [ |
| [ |
| (3, -2, 6, 8, 2), |
| (5, -3, 6, 9, 4), |
| (1, 2, 4, 7), |
| ], |
| (-1, 1, 3, 5), |
| (7, 8, 9, -4), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_U_T1.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for T1 during top absorption with contraction order shown. |
| |
| Contraction for T1 during top absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_top_T1_large_d: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1"], |
| "projector_top_left", |
| "projector_top_right", |
| ], |
| "network": [ |
| [ |
| (4, -2, 2, 8, 3), |
| (6, -3, 2, 9, 5), |
| (1, 3, 5, 7), |
| ], |
| (-1, 1, 4, 6), |
| (7, 8, 9, -4), |
| ], |
| } |
|
|
| ctmrg_absorption_top_T1_large_d_phase_1: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1_phase"], |
| "projector_top_left", |
| "projector_top_right", |
| ], |
| "network": [ |
| [ |
| (4, -2, 2, 8, 3), |
| (6, -3, 2, 9, 5), |
| (1, 3, 5, 7), |
| ], |
| (-1, 1, 4, 6), |
| (7, 8, 9, -4), |
| ], |
| } |
|
|
| ctmrg_absorption_top_T1_large_d_phase_2: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1"], |
| "projector_top_left", |
| "projector_top_right", |
| "structure_factor_gate", |
| ], |
| "network": [ |
| [ |
| (5, -2, 2, 9, 4), |
| (7, -3, 3, 10, 6), |
| (1, 4, 6, 8), |
| ], |
| (-1, 1, 5, 7), |
| (8, 9, 10, -4), |
| (2, 3), |
| ], |
| } |
|
|
| ctmrg_absorption_top_C2: Definition = { |
| "tensors": [["C2", "T2"], "projector_top_left"], |
| "network": [ |
| [ |
| (2, 1), |
| (3, 4, -2, 1), |
| ], |
| (-1, 2, 3, 4), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_U_C2.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C2 during top absorption with contraction order shown. |
| |
| Contraction for C2 during top absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_top_C2_phase_1: Definition = { |
| "tensors": [["C2_phase", "T2"], "projector_top_left"], |
| "network": [ |
| [ |
| (2, 1), |
| (3, 4, -2, 1), |
| ], |
| (-1, 2, 3, 4), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_U_C2.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C2 during top absorption with contraction order shown. |
| |
| Contraction for C2 during top absorption. Here C2 is the tensor with |
| structure factor phase included which is grown by a normal T2 tensor. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_top_C2_phase_2: Definition = { |
| "tensors": [["C2", "T2_phase"], "projector_top_left"], |
| "network": [ |
| [ |
| (2, 1), |
| (3, 4, -2, 1), |
| ], |
| (-1, 2, 3, 4), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_U_C2.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C2 during top absorption with contraction order shown. |
| |
| Contraction for C2 during top absorption. Here C2 is the tensor with |
| structure factor phase not included yet which is grown by a T2 tensor |
| which includes a phase already. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_bottom_C4: Definition = { |
| "tensors": [["C4", "T4"], "projector_bottom_right"], |
| "network": [ |
| [ |
| (2, 1), |
| (1, 4, 3, -2), |
| ], |
| (-1, 2, 4, 3), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_D_C4.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C4 during bottom absorption with contraction order shown. |
| |
| Contraction for C4 during bottom absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_bottom_C4_phase_1: Definition = { |
| "tensors": [["C4_phase", "T4"], "projector_bottom_right"], |
| "network": [ |
| [ |
| (2, 1), |
| (1, 4, 3, -2), |
| ], |
| (-1, 2, 4, 3), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_D_C4.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C4 during bottom absorption with contraction order shown. |
| |
| Contraction for C4 during bottom absorption. Here C4 is the tensor with |
| structure factor phase included which is grown by a normal T4 tensor. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_bottom_C4_phase_2: Definition = { |
| "tensors": [["C4", "T4_phase"], "projector_bottom_right"], |
| "network": [ |
| [ |
| (2, 1), |
| (1, 4, 3, -2), |
| ], |
| (-1, 2, 4, 3), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_D_C4.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C4 during bottom absorption with contraction order shown. |
| |
| Contraction for C4 during bottom absorption. Here C4 is the tensor with |
| structure factor phase not included yet which is grown by a T4 tensor |
| which includes a phase already. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_bottom_T3: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3"], |
| "projector_bottom_left", |
| "projector_bottom_right", |
| ], |
| "network": [ |
| [ |
| (3, 2, 6, 8, -4), |
| (5, 4, 6, 9, -3), |
| (1, 7, 4, 2), |
| ], |
| (1, 5, 3, -1), |
| (-2, 7, 9, 8), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_D_T3.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for T3 during bottom absorption with contraction order shown. |
| |
| Contraction for T3 during bottom absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_bottom_T3_large_d: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3"], |
| "projector_bottom_left", |
| "projector_bottom_right", |
| ], |
| "network": [ |
| [ |
| (4, 3, 2, 8, -4), |
| (6, 5, 2, 9, -3), |
| (1, 7, 5, 3), |
| ], |
| (1, 6, 4, -1), |
| (-2, 7, 9, 8), |
| ], |
| } |
|
|
| ctmrg_absorption_bottom_T3_large_d_phase_1: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3_phase"], |
| "projector_bottom_left", |
| "projector_bottom_right", |
| ], |
| "network": [ |
| [ |
| (4, 3, 2, 8, -4), |
| (6, 5, 2, 9, -3), |
| (1, 7, 5, 3), |
| ], |
| (1, 6, 4, -1), |
| (-2, 7, 9, 8), |
| ], |
| } |
|
|
| ctmrg_absorption_bottom_T3_large_d_phase_2: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3"], |
| "projector_bottom_left", |
| "projector_bottom_right", |
| "structure_factor_gate", |
| ], |
| "network": [ |
| [ |
| (5, 4, 2, 9, -4), |
| (7, 6, 3, 10, -3), |
| (1, 8, 6, 4), |
| ], |
| (1, 7, 5, -1), |
| (-2, 8, 10, 9), |
| (2, 3), |
| ], |
| } |
|
|
| ctmrg_absorption_bottom_C3: Definition = { |
| "tensors": [["T2", "C3"], "projector_bottom_left"], |
| "network": [ |
| [ |
| (3, 4, 1, -2), |
| (2, 1), |
| ], |
| (2, 4, 3, -1), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_D_C3.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C3 during bottom absorption with contraction order shown. |
| |
| Contraction for C3 during bottom absorption. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_bottom_C3_phase_1: Definition = { |
| "tensors": [["T2", "C3_phase"], "projector_bottom_left"], |
| "network": [ |
| [ |
| (3, 4, 1, -2), |
| (2, 1), |
| ], |
| (2, 4, 3, -1), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_D_C3.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C3 during bottom absorption with contraction order shown. |
| |
| Contraction for C3 during bottom absorption. Here C3 is the tensor with |
| structure factor phase included which is grown by a normal T2 tensor. |
| |
| \\ |
| """ |
|
|
| ctmrg_absorption_bottom_C3_phase_2: Definition = { |
| "tensors": [["T2_phase", "C3"], "projector_bottom_left"], |
| "network": [ |
| [ |
| (3, 4, 1, -2), |
| (2, 1), |
| ], |
| (2, 4, 3, -1), |
| ], |
| } |
| """ |
| .. figure:: /images/CTMRG_Absorption_D_C3.* |
| :align: center |
| :width: 60% |
| :alt: Contraction for C3 during bottom absorption with contraction order shown. |
| |
| Contraction for C3 during bottom absorption. Here C3 is the tensor with |
| structure factor phase not included yet which is grown by a T2 tensor |
| which includes a phase already. |
| |
| \\ |
| """ |
|
|
| ctmrg_split_transfer_absorption_left_C1: Definition = { |
| "tensors": [ |
| ["C1", "T1_ket", "T1_bra"], |
| "projector_left_bottom_ket", |
| "projector_left_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (2, 1), |
| (1, 3, 4), |
| (4, 6, -2), |
| ], |
| (5, 2, 3), |
| (-1, 5, 6), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_left_T4: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4_ket", "T4_bra"], |
| "projector_left_top_ket", |
| "projector_left_top_bra", |
| "projector_left_bottom_ket", |
| "projector_left_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (4, 6, 10, -3, 3), |
| (9, 12, 10, -2, 8), |
| (5, 4, 1), |
| (2, 9, 5), |
| ], |
| (1, 3, 7), |
| (7, 8, -4), |
| (11, 2, 6), |
| (-1, 11, 12), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_left_T4_ket: Definition = { |
| "tensors": [ |
| ["tensor", "T4_ket"], |
| "projector_left_top_ket", |
| "projector_left_top_bra", |
| "projector_left_bottom_phys_ket", |
| "projector_left_bottom_phys_bra", |
| ], |
| "network": [ |
| [ |
| (3, 5, 7, -2, 2), |
| (4, 3, 1), |
| ], |
| (1, 2, 8), |
| (8, 9, -3), |
| (6, 4, 5), |
| (-1, 6, 9, 7), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_left_T4_bra: Definition = { |
| "tensors": [ |
| ["tensor_conj", "T4_bra"], |
| "projector_left_top_phys_ket", |
| "projector_left_top_phys_bra", |
| "projector_left_bottom_ket", |
| "projector_left_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (6, 9, 7, -2, 5), |
| (2, 6, 1), |
| ], |
| (1, 3, 4), |
| (4, 5, 7, -3), |
| (8, 2, 3), |
| (-1, 8, 9), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_left_C4: Definition = { |
| "tensors": [ |
| ["T3_ket", "T3_bra", "C4"], |
| "projector_left_top_ket", |
| "projector_left_top_bra", |
| ], |
| "network": [ |
| [ |
| (1, 3, 4), |
| (4, 6, -1), |
| (1, 2), |
| ], |
| (2, 3, 5), |
| (5, 6, -2), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_right_C2: Definition = { |
| "tensors": [ |
| ["T1_ket", "T1_bra", "C2"], |
| "projector_right_bottom_ket", |
| "projector_right_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (-1, 6, 4), |
| (4, 3, 1), |
| (1, 2), |
| ], |
| (5, 6, -2), |
| (2, 3, 5), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_right_T2: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2_ket", "T2_bra"], |
| "projector_right_top_ket", |
| "projector_right_top_bra", |
| "projector_right_bottom_ket", |
| "projector_right_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (-3, 8, 10, 9, 12), |
| (-2, 3, 10, 4, 6), |
| (5, 9, 2), |
| (1, 4, 5), |
| ], |
| (-4, 11, 12), |
| (11, 2, 6), |
| (7, 8, -1), |
| (1, 3, 7), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_right_T2_ket: Definition = { |
| "tensors": [ |
| ["tensor", "T2_ket"], |
| "projector_right_top_ket", |
| "projector_right_top_bra", |
| "projector_right_bottom_phys_ket", |
| "projector_right_bottom_phys_bra", |
| ], |
| "network": [ |
| [ |
| (-2, 5, 7, 6, 9), |
| (1, 6, 2), |
| ], |
| (-3, 8, 9), |
| (8, 2, 3), |
| (4, 5, 7, -1), |
| (1, 3, 4), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_right_T2_bra: Definition = { |
| "tensors": [ |
| ["tensor_conj", "T2_bra"], |
| "projector_right_top_phys_ket", |
| "projector_right_top_phys_bra", |
| "projector_right_bottom_ket", |
| "projector_right_bottom_bra", |
| ], |
| "network": [ |
| [ |
| (-2, 2, 7, 3, 5), |
| (1, 3, 4), |
| ], |
| (-3, 6, 9, 7), |
| (6, 4, 5), |
| (8, 9, -1), |
| (1, 2, 8), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_right_C3: Definition = { |
| "tensors": [ |
| ["C3", "T3_ket", "T3_bra"], |
| "projector_right_top_ket", |
| "projector_right_top_bra", |
| ], |
| "network": [ |
| [ |
| (1, 2), |
| (-1, 6, 4), |
| (4, 3, 1), |
| ], |
| (-2, 5, 6), |
| (5, 2, 3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_top_C1: Definition = { |
| "tensors": [ |
| ["T4_ket", "T4_bra", "C1"], |
| "projector_top_right_ket", |
| "projector_top_right_bra", |
| ], |
| "network": [ |
| [ |
| (4, 3, 1), |
| (-1, 6, 4), |
| (1, 2), |
| ], |
| (2, 3, 5), |
| (5, 6, -2), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_top_T1: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1_ket", "T1_bra"], |
| "projector_top_left_ket", |
| "projector_top_left_bra", |
| "projector_top_right_ket", |
| "projector_top_right_bra", |
| ], |
| "network": [ |
| [ |
| (3, -2, 10, 6, 4), |
| (8, -3, 10, 12, 9), |
| (1, 4, 5), |
| (5, 9, 2), |
| ], |
| (7, 1, 3), |
| (-1, 7, 8), |
| (2, 6, 11), |
| (11, 12, -4), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_top_T1_ket: Definition = { |
| "tensors": [ |
| ["tensor", "T1_ket"], |
| "projector_top_left_ket", |
| "projector_top_left_bra", |
| "projector_top_right_phys_ket", |
| "projector_top_right_phys_bra", |
| ], |
| "network": [ |
| [ |
| (2, -2, 7, 5, 3), |
| (1, 3, 4), |
| ], |
| (8, 1, 2), |
| (-1, 8, 9), |
| (4, 5, 6), |
| (6, 9, 7, -3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_top_T1_bra: Definition = { |
| "tensors": [ |
| ["tensor_conj", "T1_bra"], |
| "projector_top_left_phys_ket", |
| "projector_top_left_phys_bra", |
| "projector_top_right_ket", |
| "projector_top_right_bra", |
| ], |
| "network": [ |
| [ |
| (5, -2, 7, 9, 6), |
| (1, 6, 2), |
| ], |
| (4, 1, 3), |
| (-1, 4, 5, 7), |
| (2, 3, 8), |
| (8, 9, -3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_top_C2: Definition = { |
| "tensors": [ |
| ["C2", "T2_ket", "T2_bra"], |
| "projector_top_left_ket", |
| "projector_top_left_bra", |
| ], |
| "network": [ |
| [ |
| (2, 1), |
| (4, 3, 1), |
| (-2, 6, 4), |
| ], |
| (5, 2, 3), |
| (-1, 5, 6), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_bottom_C4: Definition = { |
| "tensors": [ |
| ["C4", "T4_ket", "T4_bra"], |
| "projector_bottom_right_ket", |
| "projector_bottom_right_bra", |
| ], |
| "network": [ |
| [ |
| (2, 1), |
| (4, 6, -2), |
| (1, 3, 4), |
| ], |
| (-1, 5, 6), |
| (5, 2, 3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_bottom_T3: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3_ket", "T3_bra"], |
| "projector_bottom_left_ket", |
| "projector_bottom_left_bra", |
| "projector_bottom_right_ket", |
| "projector_bottom_right_bra", |
| ], |
| "network": [ |
| [ |
| (12, 9, 10, 8, -2), |
| (6, 4, 10, 3, -3), |
| (2, 9, 5), |
| (5, 4, 1), |
| ], |
| (11, 12, -1), |
| (2, 6, 11), |
| (-4, 7, 8), |
| (7, 1, 3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_bottom_T3_ket: Definition = { |
| "tensors": [ |
| ["tensor", "T3_ket"], |
| "projector_bottom_left_ket", |
| "projector_bottom_left_bra", |
| "projector_bottom_right_phys_ket", |
| "projector_bottom_right_phys_bra", |
| ], |
| "network": [ |
| [ |
| (9, 6, 7, 5, -2), |
| (2, 6, 1), |
| ], |
| (8, 9, -1), |
| (2, 3, 8), |
| (-3, 4, 5, 7), |
| (4, 1, 3), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_bottom_T3_bra: Definition = { |
| "tensors": [ |
| ["tensor_conj", "T3_bra"], |
| "projector_bottom_left_phys_ket", |
| "projector_bottom_left_phys_bra", |
| "projector_bottom_right_ket", |
| "projector_bottom_right_bra", |
| ], |
| "network": [ |
| [ |
| (5, 3, 7, 2, -2), |
| (4, 3, 1), |
| ], |
| (6, 9, 7, -1), |
| (4, 5, 6), |
| (-3, 8, 9), |
| (8, 1, 2), |
| ], |
| } |
|
|
| ctmrg_split_transfer_absorption_bottom_C3: Definition = { |
| "tensors": [ |
| ["T2_ket", "T2_bra", "C3"], |
| "projector_bottom_left_ket", |
| "projector_bottom_left_bra", |
| ], |
| "network": [ |
| [ |
| (4, 6, -2), |
| (1, 3, 4), |
| (2, 1), |
| ], |
| (5, 6, -1), |
| (2, 3, 5), |
| ], |
| } |
|
|
| ctmrg_gauge_fix_T1: Definition = { |
| "tensors": [["T1"], "left_unitary", "right_unitary"], |
| "network": [ |
| [(1, -2, -3, 2)], |
| (-1, 1), |
| (-4, 2), |
| ], |
| } |
|
|
| ctmrg_gauge_fix_C2: Definition = { |
| "tensors": [["C2"], "left_unitary", "bottom_unitary"], |
| "network": [[(1, 2)], (-1, 1), (-2, 2)], |
| } |
|
|
| ctmrg_gauge_fix_T2: Definition = { |
| "tensors": [["T2"], "top_unitary", "bottom_unitary"], |
| "network": [ |
| [(-1, -2, 1, 2)], |
| (-4, 2), |
| (-3, 1), |
| ], |
| } |
|
|
| ctmrg_gauge_fix_T3: Definition = { |
| "tensors": [["T3"], "left_unitary", "right_unitary"], |
| "network": [ |
| [(1, 2, -3, -4)], |
| (1, -1), |
| (2, -2), |
| ], |
| } |
|
|
| ctmrg_gauge_fix_C4: Definition = { |
| "tensors": [["C4"], "top_unitary", "right_unitary"], |
| "network": [[(1, 2)], (2, -2), (1, -1)], |
| } |
|
|
| ctmrg_gauge_fix_T4: Definition = { |
| "tensors": [["T4"], "top_unitary", "bottom_unitary"], |
| "network": [ |
| [(1, -2, -3, 2)], |
| (2, -4), |
| (1, -1), |
| ], |
| } |
|
|
| unitcell_bond_dim_change_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "C1", "T1", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (5, 9, 11, -4, 4), |
| (7, 10, 11, -3, 6), |
| (1, 3), |
| (3, 4, 6, -1), |
| (2, -2, 10, 9), |
| (2, 8), |
| (8, 7, 5, 1), |
| ] |
| ], |
| } |
|
|
| unitcell_bond_dim_change_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "C2", "T2", "T3", "C3"]], |
| "network": [ |
| [ |
| (-1, 8, 11, 5, 4), |
| (-4, 9, 11, 7, 6), |
| (-2, 4, 6, 3), |
| (3, 1), |
| (5, 7, 10, 1), |
| (-3, 2, 9, 8), |
| (2, 10), |
| ] |
| ], |
| } |
|
|
| unitcell_bond_dim_change_top: Definition = { |
| "tensors": [["tensor", "tensor_conj", "C1", "T1", "C2", "T2", "T4"]], |
| "network": [ |
| [ |
| (8, -4, 11, 4, 5), |
| (9, -3, 11, 6, 7), |
| (2, 10), |
| (10, 5, 7, 1), |
| (1, 3), |
| (4, 6, -2, 3), |
| (-1, 9, 8, 2), |
| ] |
| ], |
| } |
|
|
| unitcell_bond_dim_change_bottom: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2", "C3", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (4, 5, 11, 8, -1), |
| (6, 7, 11, 9, -4), |
| (8, 9, 2, -3), |
| (10, 2), |
| (1, 10, 7, 5), |
| (1, 3), |
| (3, 6, 4, -2), |
| ] |
| ], |
| } |
|
|
| kagome_pess3_single_site_mapping: Definition = { |
| "tensors": ["up_simplex", "down_simplex", "site1", "site2", "site3"], |
| "network": [ |
| (1, 2, 3), |
| (-1, -7, 4), |
| (4, -3, 1), |
| (-2, -4, 2), |
| (-6, -5, 3), |
| ], |
| } |
|
|
| kagome_downward_triangle_top_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4", "C1", "T1"]], |
| "network": [ |
| [ |
| (3, -4, 7, 8, -1, -7, 4), |
| (5, -5, 7, 8, -2, -8, 6), |
| (-3, 5, 3, 1), |
| (1, 2), |
| (2, 4, 6, -6), |
| ] |
| ], |
| } |
|
|
| kagome_downward_triangle_top_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "C2", "T2"]], |
| "network": [ |
| [ |
| (-4, -8, 7, -1, 8, 4, 3), |
| (-5, -7, 7, -2, 8, 6, 5), |
| (-3, 3, 5, 1), |
| (1, 2), |
| (4, 6, -6, 2), |
| ] |
| ], |
| } |
|
|
| kagome_downward_triangle_bottom_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (3, 4, 7, 8, -1, -5, -7), |
| (5, 6, 7, 8, -2, -4, -8), |
| (2, -3, 6, 4), |
| (2, 1), |
| (1, 5, 3, -6), |
| ] |
| ], |
| } |
|
|
| kagome_downward_triangle_bottom_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2", "T3", "C3"]], |
| "network": [ |
| [ |
| (-8, 3, -1, 7, 8, 4, -5), |
| (-7, 5, -2, 7, 8, 6, -4), |
| (4, 6, 2, -3), |
| (-6, 1, 5, 3), |
| (1, 2), |
| ] |
| ], |
| } |
|
|
| kagome_pess_mapping_upper_triangle: Definition = { |
| "tensors": ["up", "down", "site_1", "site_2", "site_3"], |
| "network": [ |
| [1, 2, 3], |
| [-1, 4, -2], |
| [-7, -3, 1], |
| [4, -4, 2], |
| [-6, -5, 3], |
| ], |
| } |
|
|
| honeycomb_density_matrix_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "C1", "T1", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (5, 9, 11, -1, -4, 4), |
| (7, 10, 11, -2, -5, 6), |
| (1, 3), |
| (3, 4, 6, -3), |
| (2, -6, 10, 9), |
| (2, 8), |
| (8, 7, 5, 1), |
| ] |
| ], |
| } |
|
|
| honeycomb_density_matrix_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "C2", "T2", "T3", "C3"]], |
| "network": [ |
| [ |
| (-2, 8, -5, 11, 5, 4), |
| (-3, 9, -6, 11, 7, 6), |
| (-1, 4, 6, 3), |
| (3, 1), |
| (5, 7, 10, 1), |
| (-4, 2, 9, 8), |
| (2, 10), |
| ] |
| ], |
| } |
|
|
| honeycomb_density_matrix_top: Definition = { |
| "tensors": [["tensor", "tensor_conj", "C1", "T1", "C2", "T2", "T4"]], |
| "network": [ |
| [ |
| (8, -4, -1, 11, 4, 5), |
| (9, -5, -2, 11, 6, 7), |
| (2, 10), |
| (10, 5, 7, 1), |
| (1, 3), |
| (4, 6, -6, 3), |
| (-3, 9, 8, 2), |
| ] |
| ], |
| } |
|
|
| honeycomb_density_matrix_bottom: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2", "C3", "T3", "C4", "T4"]], |
| "network": [ |
| [ |
| (4, 5, 11, -5, 8, -2), |
| (6, 7, 11, -6, 9, -3), |
| (8, 9, 2, -4), |
| (10, 2), |
| (1, 10, 7, 5), |
| (1, 3), |
| (3, 6, 4, -1), |
| ] |
| ], |
| } |
|
|
| square_kagome_pess_mapping: Definition = { |
| "tensors": [ |
| "t1", |
| "t2", |
| "t3", |
| "t4", |
| "t5", |
| "t6", |
| "simplex_left", |
| "simplex_top", |
| "simplex_right", |
| "simplex_bottom", |
| ], |
| "network": [ |
| (-2, -3, 9), |
| (7, -4, 1), |
| (5, -5, 2), |
| (6, -6, 3), |
| (8, -7, 4), |
| (-9, -8, 10), |
| (-1, 5, 1), |
| (-10, 8, 2), |
| (10, 6, 4), |
| (9, 7, 3), |
| ], |
| } |
|
|
| triangular_pess_mapping: Definition = { |
| "tensors": [ |
| "site", |
| "simplex", |
| ], |
| "network": [ |
| (-1, 1, -2, -3), |
| (-5, 1, -4), |
| ], |
| } |
|
|
| maple_leaf_pess_mapping: Definition = { |
| "tensors": ["t1", "t2", "t3", "up", "down"], |
| "network": [ |
| (-3, -1, 1), |
| (-4, -2, 2), |
| (-5, 4, 3), |
| (1, 2, 4), |
| (3, -7, -6), |
| ], |
| } |
|
|
| corrlength_transfer_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "T3"]], |
| "network": [ |
| [ |
| (-2, 4, 1, -6, 2), |
| (-3, 5, 1, -7, 3), |
| (-1, 2, 3, -5), |
| (-4, -8, 5, 4), |
| ] |
| ], |
| } |
|
|
| corrlength_vector_left: Definition = { |
| "tensors": [["C1", "T4", "C4"]], |
| "network": [ |
| [ |
| (1, -1), |
| (2, -3, -2, 1), |
| (-4, 2), |
| ] |
| ], |
| } |
|
|
| corrlength_vector_right: Definition = { |
| "tensors": [["C2", "T2", "C3"]], |
| "network": [ |
| [ |
| (-1, 1), |
| (-2, -3, 2, 1), |
| (-4, 2), |
| ] |
| ], |
| } |
|
|
| corrlength_transfer_bottom: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4", "T2"]], |
| "network": [ |
| [ |
| (2, -6, 1, 4, -2), |
| (3, -7, 1, 5, -3), |
| (-5, 3, 2, -1), |
| (4, 5, -8, -4), |
| ] |
| ], |
| } |
|
|
| corrlength_vector_top: Definition = { |
| "tensors": [["C1", "T1", "C2"]], |
| "network": [ |
| [ |
| (-1, 1), |
| (1, -2, -3, 2), |
| (2, -4), |
| ] |
| ], |
| } |
|
|
| corrlength_vector_bottom: Definition = { |
| "tensors": [["C4", "T3", "C3"]], |
| "network": [ |
| [ |
| (1, -1), |
| (1, 2, -3, -2), |
| (2, -4), |
| ] |
| ], |
| } |
|
|
| corrlength_absorb_one_column: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1", "T3"], "vec"], |
| "network": [ |
| [ |
| (3, 8, 2, -2, 4), |
| (5, 9, 2, -3, 6), |
| (1, 4, 6, -1), |
| (7, -4, 9, 8), |
| ], |
| [1, 3, 5, 7], |
| ], |
| } |
|
|
| corrlength_absorb_one_row: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4", "T2"], "vec"], |
| "network": [ |
| [ |
| (4, -2, 2, 8, 3), |
| (6, -3, 2, 9, 5), |
| (-1, 6, 4, 1), |
| (8, 9, -4, 7), |
| ], |
| [1, 3, 5, 7], |
| ], |
| } |
|
|
| overlap_one_site_only_corners: Definition = { |
| "tensors": [["C1", "C2", "C3", "C4"]], |
| "network": [ |
| [ |
| (1, 2), |
| (2, 3), |
| (4, 3), |
| (4, 1), |
| ], |
| ], |
| } |
|
|
| overlap_one_site_only_transfer_horizontal: Definition = { |
| "tensors": [["C1", "T1", "C2", "C3", "T3", "C4"]], |
| "network": [ |
| [ |
| (1, 2), |
| (2, 4, 5, 6), |
| (6, 7), |
| (7, 8), |
| (3, 8, 5, 4), |
| (3, 1), |
| ], |
| ], |
| } |
|
|
| overlap_one_site_only_transfer_vertical: Definition = { |
| "tensors": [["C1", "C2", "T2", "C3", "C4", "T4"]], |
| "network": [ |
| [ |
| (2, 1), |
| (1, 3), |
| (4, 5, 8, 3), |
| (7, 8), |
| (7, 6), |
| (6, 5, 4, 2), |
| ], |
| ], |
| } |
|
|
| overlap_four_sites_square_only_corners: Definition = { |
| "tensors": [["C1"], ["C2"], ["C3"], ["C4"]], |
| "network": [ |
| [ |
| (1, 2), |
| ], |
| [ |
| (2, 3), |
| ], |
| [ |
| (4, 3), |
| ], |
| [ |
| (4, 1), |
| ], |
| ], |
| } |
|
|
| overlap_four_sites_square_transfer_horizontal: Definition = { |
| "tensors": [["C1", "T1"], ["T1", "C2"], ["C3", "T3"], ["T3", "C4"]], |
| "network": [ |
| [ |
| (1, 2), |
| (2, 4, 5, 11), |
| ], |
| [ |
| (11, 9, 10, 7), |
| (7, 6), |
| ], |
| [ |
| (8, 6), |
| (12, 8, 10, 9), |
| ], |
| [ |
| (3, 12, 5, 4), |
| (3, 1), |
| ], |
| ], |
| } |
|
|
| overlap_four_sites_square_transfer_vertical: Definition = { |
| "tensors": [["T4", "C1"], ["C2", "T2"], ["T2", "C3"], ["C4", "T4"]], |
| "network": [ |
| [ |
| (11, 5, 4, 2), |
| (2, 1), |
| ], |
| [ |
| (1, 3), |
| (4, 5, 12, 3), |
| ], |
| [ |
| (9, 10, 7, 12), |
| (6, 7), |
| ], |
| [ |
| (6, 8), |
| (8, 10, 9, 11), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corner_90: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "C2", "T2b"]], |
| "network": [ |
| [ |
| (3, 4, 11, -5, -2, 5, 9), |
| (6, 7, 12, -6, -3, 8, 9), |
| (-1, 5, 8, 1), |
| (1, 3, 6, 2), |
| (2, 4, 7, 10), |
| (10, 11, 12, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corner_210: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "C6", "T6b"]], |
| "network": [ |
| [ |
| (11, -5, -2, 4, 5, 3, 9), |
| (12, -6, -3, 7, 8, 6, 9), |
| (-1, 4, 7, 1), |
| (1, 5, 8, 2), |
| (2, 3, 6, 10), |
| (10, 11, 12, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corner_330: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "C3", "C4", "T4b"]], |
| "network": [ |
| [ |
| (-2, 3, 4, 5, 11, -5, 9), |
| (-3, 6, 7, 8, 12, -6, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corner_30: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "C2", "C3", "T3b"]], |
| "network": [ |
| [ |
| (3, 4, 5, 11, -5, -2, 9), |
| (6, 7, 8, 12, -6, -3, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corner_150: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "C1", "T1b"]], |
| "network": [ |
| [ |
| (3, 11, -5, -2, 4, 5, 9), |
| (6, 12, -6, -3, 7, 8, 9), |
| (-1, 4, 7, 1), |
| (1, 5, 8, 2), |
| (2, 3, 6, 10), |
| (10, 11, 12, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corner_270: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3a", "C4", "C5", "T5b"]], |
| "network": [ |
| [ |
| (-5, -2, 3, 4, 5, 11, 9), |
| (-6, -3, 6, 7, 8, 12, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_150_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3a", "C4", "C5", "C6", "T6b"]], |
| |
| "network": [ |
| [ |
| (14, -2, 11, 3, 4, 5, 9), |
| (15, -3, 12, 6, 7, 8, 9), |
| (-1, 11, 12, 10), |
| (10, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 13), |
| (13, 14, 15, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_150_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "C2", "C3", "T3b"]], |
| |
| "network": [ |
| [ |
| (3, 4, 5, 11, -3, 14, 9), |
| (6, 7, 8, 12, -4, 15, 9), |
| (-1, 14, 15, 13), |
| (13, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -2), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_330_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a_trunc", "C1", "C2", "C3", "T3b"]], |
| |
| "network": [ |
| [ |
| (3, 4, 5, 14, -2, 11, 9), |
| (6, 7, 8, 15, -3, 12, 9), |
| (-1, 11, 12, 10), |
| (10, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 13), |
| (13, 14, 15, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_330_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3a", "C4", "C5", "C6", "T6b_trunc"]], |
| |
| "network": [ |
| [ |
| (11, -3, 14, 3, 4, 5, 9), |
| (12, -4, 15, 6, 7, 8, 9), |
| (-1, 14, 15, 13), |
| (13, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -2), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_90_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a_trunc", "C5", "C6", "C1", "T1b"]], |
| |
| "network": [ |
| [ |
| (5, 14, -2, 11, 3, 4, 9), |
| (8, 15, -3, 12, 6, 7, 9), |
| (-1, 11, 12, 10), |
| (10, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 13), |
| (13, 14, 15, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_90_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "C2", "C3", "C4", "T4b_trunc"]], |
| |
| "network": [ |
| [ |
| (14, 3, 4, 5, 11, -3, 9), |
| (15, 6, 7, 8, 12, -4, 9), |
| (-1, 14, 15, 13), |
| (13, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -2), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_270_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "C2", "C3", "C4", "T4b"]], |
| |
| "network": [ |
| [ |
| (11, 3, 4, 5, 14, -2, 9), |
| (12, 6, 7, 8, 15, -3, 9), |
| (-1, 11, 12, 10), |
| (10, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 13), |
| (13, 14, 15, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_270_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "C6", "C1", "T1b"]], |
| |
| "network": [ |
| [ |
| (5, 11, -3, 14, 3, 4, 9), |
| (8, 12, -4, 15, 6, 7, 9), |
| (-1, 14, 15, 13), |
| (13, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -2), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_30_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "C1", "C2", "T2b"]], |
| |
| "network": [ |
| [ |
| (4, 5, 14, -2, 11, 3, 9), |
| (7, 8, 15, -3, 12, 6, 9), |
| (-1, 11, 12, 10), |
| (10, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 13), |
| (13, 14, 15, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_30_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "C3", "C4", "C5", "T5b"]], |
| |
| "network": [ |
| [ |
| (-3, 14, 3, 4, 5, 11, 9), |
| (-4, 15, 6, 7, 8, 12, 9), |
| (-1, 14, 15, 13), |
| (13, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -2), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_210_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a_trunc", "C3", "C4", "C5", "T5b"]], |
| |
| "network": [ |
| [ |
| (-2, 11, 3, 4, 5, 14, 9), |
| (-3, 12, 6, 7, 8, 15, 9), |
| (-1, 11, 12, 10), |
| (10, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 13), |
| (13, 14, 15, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_T_proj_210_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "C1", "C2", "T2b_trunc"]], |
| |
| "network": [ |
| [ |
| (4, 5, 11, -3, 14, 3, 9), |
| (7, 8, 12, -4, 15, 6, 9), |
| (-1, 14, 15, 13), |
| (13, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -2), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_split_corner_90: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T6a", "C1", "C2", "T2b"], |
| "proj_150_ket_left", |
| "proj_30_ket_right", |
| ], |
| "network": [ |
| [ |
| (3, 7, 13, 16, 4, 5, 11), |
| (8, 9, 14, -4, -2, 10, 11), |
| (1, 5, 10, 2), |
| (2, 3, 8, 6), |
| (6, 7, 9, 12), |
| (12, 13, 14, 15), |
| ], |
| (-1, 1, 4), |
| (15, 16, -3), |
| ], |
| } |
|
|
| triangular_ctmrg_split_corner_210: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4a", "C5", "C6", "T6b"], |
| "proj_270_bra_left", |
| "proj_150_ket_right", |
| ], |
| "network": [ |
| [ |
| (13, 16, -2, 8, 9, 10, 11), |
| (14, -4, 3, 4, 5, 7, 11), |
| (1, 8, 4, 2), |
| (2, 9, 5, 6), |
| (6, 10, 7, 12), |
| (12, 13, 14, 15), |
| ], |
| (-1, 1, 3), |
| (15, 16, -3), |
| ], |
| } |
|
|
| triangular_ctmrg_split_corner_330: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2a", "C3", "C4", "T4b"], |
| "proj_30_ket_left", |
| "proj_270_bra_right", |
| ], |
| "network": [ |
| [ |
| (5, 3, 4, 7, 13, -4, 11), |
| (-2, 8, 9, 10, 14, 16, 11), |
| (1, 3, 8, 2), |
| (2, 4, 9, 6), |
| (6, 7, 10, 12), |
| (12, 13, 14, 15), |
| ], |
| (-1, 1, 5), |
| (15, 16, -3), |
| ], |
| } |
|
|
| triangular_ctmrg_split_corner_30: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1a", "C2", "C3", "T3b"], |
| "proj_90_ket_left", |
| "proj_330_bra_right", |
| ], |
| "network": [ |
| [ |
| (3, 4, 7, 13, -4, 5, 11), |
| (8, 9, 10, 14, 16, -2, 11), |
| (1, 3, 8, 2), |
| (2, 4, 9, 6), |
| (6, 7, 10, 12), |
| (12, 13, 14, 15), |
| ], |
| (-1, 1, 5), |
| (15, 16, -3), |
| ], |
| } |
|
|
| triangular_ctmrg_split_corner_150: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T5a", "C6", "C1", "T1b"], |
| "proj_210_bra_left", |
| "proj_90_ket_right", |
| ], |
| "network": [ |
| [ |
| (10, 13, 16, -2, 8, 9, 11), |
| (7, 14, -4, 3, 4, 5, 11), |
| (1, 8, 4, 2), |
| (2, 9, 5, 6), |
| (6, 10, 7, 12), |
| (12, 13, 14, 15), |
| ], |
| (-1, 1, 3), |
| (15, 16, -3), |
| ], |
| } |
|
|
| triangular_ctmrg_split_corner_270: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3a", "C4", "C5", "T5b"], |
| "proj_330_bra_left", |
| "proj_210_bra_right", |
| ], |
| "network": [ |
| [ |
| (-4, -2, 8, 9, 10, 13, 11), |
| (16, 3, 4, 5, 7, 14, 11), |
| (1, 8, 4, 2), |
| (2, 9, 5, 6), |
| (6, 10, 7, 12), |
| (12, 13, 14, 15), |
| ], |
| (-1, 1, 3), |
| (15, 16, -3), |
| ], |
| } |
|
|
| triangular_ctmrg_split_proj_150_330_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3a", "C4", "C5", "C6", "T6b"]], |
| "network": [ |
| [ |
| (14, -4, 3, 4, 5, 12, 9), |
| (15, -2, 6, 7, 8, 13, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 13, 10), |
| (10, 14, 15, -3), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_split_proj_150_330_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "C2", "C3", "T3b"]], |
| "network": [ |
| [ |
| (3, 4, 12, 14, -2, 5, 9), |
| (6, 7, 13, 15, -4, 8, 9), |
| (-1, 5, 8, 1), |
| (1, 3, 6, 2), |
| (2, 4, 7, 11), |
| (11, 12, 13, 10), |
| (10, 14, 15, -3), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_split_proj_90_270_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "C6", "C1", "T1b"]], |
| "network": [ |
| [ |
| (12, 14, -4, 3, 4, 5, 9), |
| (13, 15, -2, 6, 7, 8, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 13, 10), |
| (10, 14, 15, -3), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_split_proj_90_270_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "C2", "C3", "C4", "T4b"]], |
| "network": [ |
| [ |
| (3, 4, 5, 12, 14, -2, 9), |
| (6, 7, 8, 13, 15, -4, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 13, 10), |
| (10, 14, 15, -3), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_split_proj_30_210_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "C1", "C2", "T2b"]], |
| "network": [ |
| [ |
| (3, 12, 14, -4, 4, 5, 9), |
| (6, 13, 15, -2, 7, 8, 9), |
| (-1, 4, 7, 1), |
| (1, 5, 8, 2), |
| (2, 3, 6, 11), |
| (11, 12, 13, 10), |
| (10, 14, 15, -3), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_split_proj_30_210_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "C3", "C4", "C5", "T5b"]], |
| "network": [ |
| [ |
| (-2, 3, 4, 5, 12, 14, 9), |
| (-4, 6, 7, 8, 13, 15, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 13, 10), |
| (10, 14, 15, -3), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_C1_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T6a", "C1", "T1b"], |
| "projector_150_left", |
| "projector_90_right", |
| ], |
| "network": [ |
| [ |
| (5, 12, 13, -2, 3, 4, 9), |
| (8, 14, 15, -3, 6, 7, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 14, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 13, 15, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_C2_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1a", "C2", "T2b"], |
| "projector_90_left", |
| "projector_30_right", |
| ], |
| "network": [ |
| [ |
| (4, 5, 12, 13, -2, 3, 9), |
| (7, 8, 14, 15, -3, 6, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 14, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 13, 15, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_C3_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2a", "C3", "T3b"], |
| "projector_30_left", |
| "projector_330_right", |
| ], |
| "network": [ |
| [ |
| (3, 4, 5, 12, 13, -2, 9), |
| (6, 7, 8, 14, 15, -3, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 14, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 13, 15, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_C4_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3a", "C4", "T4b"], |
| "projector_330_left", |
| "projector_270_right", |
| ], |
| "network": [ |
| [ |
| (-2, 3, 4, 5, 12, 13, 9), |
| (-3, 6, 7, 8, 14, 15, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 14, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 13, 15, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_C5_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4a", "C5", "T5b"], |
| "projector_270_left", |
| "projector_210_right", |
| ], |
| "network": [ |
| [ |
| (13, -2, 3, 4, 5, 12, 9), |
| (15, -3, 6, 7, 8, 14, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 14, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 13, 15, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_C6_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T5a", "C6", "T6b"], |
| "projector_210_left", |
| "projector_150_right", |
| ], |
| "network": [ |
| [ |
| (12, 13, -2, 3, 4, 5, 9), |
| (14, 15, -3, 6, 7, 8, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 11), |
| (11, 12, 14, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 13, 15, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_T1_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1a", "T1b"], |
| "projector_90_left", |
| "projector_90_right", |
| ], |
| "network": [ |
| [ |
| (4, 5, 11, -4, -2, 3, 9), |
| (7, 8, 12, -5, -3, 6, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 11, 12, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_T2_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2a", "T2b"], |
| "projector_30_left", |
| "projector_30_right", |
| ], |
| "network": [ |
| [ |
| (3, 4, 5, 11, -4, -2, 9), |
| (6, 7, 8, 12, -5, -3, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 11, 12, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_T3_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3a", "T3b"], |
| "projector_330_left", |
| "projector_330_right", |
| ], |
| "network": [ |
| [ |
| (-2, 3, 4, 5, 11, -4, 9), |
| (-3, 6, 7, 8, 12, -5, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 11, 12, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_T4_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4a", "T4b"], |
| "projector_270_left", |
| "projector_270_right", |
| ], |
| "network": [ |
| [ |
| (-4, -2, 3, 4, 5, 11, 9), |
| (-5, -3, 6, 7, 8, 12, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 11, 12, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_T5_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T5a", "T5b"], |
| "projector_210_left", |
| "projector_210_right", |
| ], |
| "network": [ |
| [ |
| (11, -4, -2, 3, 4, 5, 9), |
| (12, -5, -3, 6, 7, 8, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 11, 12, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_T6_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T6a", "T6b"], |
| "projector_150_left", |
| "projector_150_right", |
| ], |
| "network": [ |
| [ |
| (5, 11, -4, -2, 3, 4, 9), |
| (8, 12, -5, -3, 6, 7, 9), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| ], |
| (-1, 1, 3, 6), |
| (10, 11, 12, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_split_C1_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T6a", "C1", "T1b"], |
| "projector_150_bra_left", |
| "projector_150_ket_left", |
| "projector_90_ket_right", |
| "projector_90_bra_right", |
| ], |
| "network": [ |
| [ |
| (3, 8, 9, -2, 4, 5, 13), |
| (10, 11, 17, -3, 15, 12, 13), |
| (1, 5, 12, 2), |
| (2, 3, 10, 7), |
| (7, 8, 11, 6), |
| ], |
| (-1, 14, 15), |
| (14, 1, 4), |
| (6, 9, 16), |
| (16, 17, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_split_C2_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1a", "C2", "T2b"], |
| "projector_90_bra_left", |
| "projector_90_ket_left", |
| "projector_30_ket_right", |
| "projector_30_bra_right", |
| ], |
| "network": [ |
| [ |
| (3, 4, 8, 9, -2, 5, 13), |
| (10, 11, 12, 17, -3, 15, 13), |
| (1, 3, 10, 2), |
| (2, 4, 11, 7), |
| (7, 8, 12, 6), |
| ], |
| (-1, 14, 15), |
| (14, 1, 5), |
| (6, 9, 16), |
| (16, 17, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_split_C3_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2a", "C3", "T3b"], |
| "projector_30_bra_left", |
| "projector_30_ket_left", |
| "projector_330_bra_right", |
| "projector_330_ket_right", |
| ], |
| "network": [ |
| [ |
| (3, 4, 5, 7, 15, -2, 11), |
| (17, 8, 9, 10, 14, -3, 11), |
| (1, 4, 8, 2), |
| (2, 5, 9, 6), |
| (6, 7, 10, 13), |
| ], |
| (-1, 16, 17), |
| (16, 1, 3), |
| (13, 14, 12), |
| (12, 15, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_split_C4_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3a", "C4", "T4b"], |
| "projector_330_ket_left", |
| "projector_330_bra_left", |
| "projector_270_bra_right", |
| "projector_270_ket_right", |
| ], |
| "network": [ |
| [ |
| (-2, 15, 10, 11, 12, 17, 13), |
| (-3, 3, 4, 5, 8, 9, 13), |
| (1, 10, 4, 2), |
| (2, 11, 5, 7), |
| (7, 12, 8, 6), |
| ], |
| (-1, 14, 15), |
| (14, 1, 3), |
| (6, 9, 16), |
| (16, 17, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_split_C5_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4a", "C5", "T5b"], |
| "projector_270_ket_left", |
| "projector_270_bra_left", |
| "projector_210_bra_right", |
| "projector_210_ket_right", |
| ], |
| "network": [ |
| [ |
| (17, -2, 15, 10, 11, 12, 13), |
| (9, -3, 3, 4, 5, 8, 13), |
| (1, 10, 4, 2), |
| (2, 11, 5, 7), |
| (7, 12, 8, 6), |
| ], |
| (-1, 14, 15), |
| (14, 1, 3), |
| (6, 9, 16), |
| (16, 17, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_split_C6_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T5a", "C6", "T6b"], |
| "projector_210_ket_left", |
| "projector_210_bra_left", |
| "projector_150_ket_right", |
| "projector_150_bra_right", |
| ], |
| "network": [ |
| [ |
| (8, 14, -2, 17, 9, 10, 11), |
| (7, 15, -3, 3, 4, 5, 11), |
| (1, 9, 4, 2), |
| (2, 10, 5, 6), |
| (6, 8, 7, 13), |
| ], |
| (-1, 16, 17), |
| (16, 1, 3), |
| (13, 14, 12), |
| (12, 15, -4), |
| ], |
| } |
|
|
| triangular_ctmrg_split_T1_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T1a", "T1b"], |
| "projector_90_bra_left", |
| "projector_90_ket_left", |
| "projector_90_ket_right", |
| "projector_90_bra_right", |
| ], |
| "network": [ |
| [ |
| (3, 4, 7, -4, -2, 5, 12), |
| (9, 10, 14, -5, -3, 11, 12), |
| (1, 3, 9, 2), |
| (2, 4, 10, 6), |
| ], |
| (-1, 8, 11), |
| (8, 1, 5), |
| (6, 7, 13), |
| (13, 14, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_split_T2_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T2a", "T2b"], |
| "projector_30_bra_left", |
| "projector_30_ket_left", |
| "projector_30_ket_right", |
| "projector_30_bra_right", |
| ], |
| "network": [ |
| [ |
| (3, 4, 5, 7, -4, -2, 12), |
| (9, 10, 11, 14, -5, -3, 12), |
| (1, 4, 10, 2), |
| (2, 5, 11, 6), |
| ], |
| (-1, 8, 9), |
| (8, 1, 3), |
| (6, 7, 13), |
| (13, 14, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_split_T3_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T3a", "T3b"], |
| "projector_330_ket_left", |
| "projector_330_bra_left", |
| "projector_330_bra_right", |
| "projector_330_ket_right", |
| ], |
| "network": [ |
| [ |
| (-2, 9, 10, 11, 14, -4, 12), |
| (-3, 3, 4, 5, 7, -5, 12), |
| (1, 10, 4, 2), |
| (2, 11, 5, 6), |
| ], |
| (-1, 8, 9), |
| (8, 1, 3), |
| (6, 7, 13), |
| (13, 14, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_split_T4_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T4a", "T4b"], |
| "projector_270_ket_left", |
| "projector_270_bra_left", |
| "projector_270_bra_right", |
| "projector_270_ket_right", |
| ], |
| "network": [ |
| [ |
| (-4, -2, 9, 10, 11, 14, 12), |
| (-5, -3, 3, 4, 5, 7, 12), |
| (1, 10, 4, 2), |
| (2, 11, 5, 6), |
| ], |
| (-1, 8, 9), |
| (8, 1, 3), |
| (6, 7, 13), |
| (13, 14, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_split_T5_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T5a", "T5b"], |
| "projector_210_ket_left", |
| "projector_210_bra_left", |
| "projector_210_bra_right", |
| "projector_210_ket_right", |
| ], |
| "network": [ |
| [ |
| (14, -4, -2, 9, 10, 11, 12), |
| (7, -5, -3, 3, 4, 5, 12), |
| (1, 10, 4, 2), |
| (2, 11, 5, 6), |
| ], |
| (-1, 8, 9), |
| (8, 1, 3), |
| (6, 7, 13), |
| (13, 14, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_split_T6_absorption: Definition = { |
| "tensors": [ |
| ["tensor", "tensor_conj", "T6a", "T6b"], |
| "projector_150_bra_left", |
| "projector_150_ket_left", |
| "projector_150_ket_right", |
| "projector_150_bra_right", |
| ], |
| "network": [ |
| [ |
| (5, 7, -4, -2, 3, 4, 12), |
| (11, 14, -5, -3, 9, 10, 12), |
| (1, 4, 10, 2), |
| (2, 5, 11, 6), |
| ], |
| (-1, 8, 9), |
| (8, 1, 3), |
| (6, 7, 13), |
| (13, 14, -6), |
| ], |
| } |
|
|
| triangular_ctmrg_one_site_expectation: Definition = { |
| "tensors": [["tensor", "tensor_conj", "C1", "C2", "C3", "C4", "C5", "C6"]], |
| "network": [ |
| [ |
| (5, 6, 7, 9, 10, 11, -1), |
| (13, 14, 15, 16, 17, 18, -2), |
| (12, 5, 13, 1), |
| (1, 6, 14, 2), |
| (2, 7, 15, 8), |
| (8, 9, 16, 3), |
| (3, 10, 17, 4), |
| (4, 11, 18, 12), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_two_site_expectation_horizontal_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "C6", "C1", "T1b"]], |
| "network": [ |
| [ |
| (7, 13, -4, 3, 4, 5, -1), |
| (11, 14, -5, 8, 9, 10, -2), |
| (-6, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, 12), |
| (12, 13, 14, -3), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_two_site_expectation_horizontal_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "C2", "C3", "C4", "T4b"]], |
| "network": [ |
| [ |
| (3, 4, 5, 7, 13, -2, -5), |
| (8, 9, 10, 11, 14, -3, -6), |
| (-1, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, 12), |
| (12, 13, 14, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_two_site_expectation_vertical_top: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "C2", "C3", "T3b"]], |
| "network": [ |
| [ |
| (4, 5, 7, 13, -4, 3, -1), |
| (9, 10, 11, 14, -5, 8, -2), |
| (-3, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, 12), |
| (12, 13, 14, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_two_site_expectation_vertical_bottom: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3a", "C4", "C5", "C6", "T6b"]], |
| "network": [ |
| [ |
| (13, -2, 3, 4, 5, 7, -5), |
| (14, -3, 8, 9, 10, 11, -6), |
| (-4, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, 12), |
| (12, 13, 14, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_two_site_expectation_diagonal_top: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "C1", "C2", "T2b"]], |
| "network": [ |
| [ |
| (5, 7, 13, -4, 3, 4, -1), |
| (10, 11, 14, -5, 8, 9, -2), |
| (-3, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, 12), |
| (12, 13, 14, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_two_site_expectation_diagonal_bottom: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "C3", "C4", "C5", "T5b"]], |
| "network": [ |
| [ |
| (-2, 3, 4, 5, 7, 13, -5), |
| (-3, 8, 9, 10, 11, 14, -6), |
| (-4, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, 12), |
| (12, 13, 14, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_neg_x_pos_y_expectation_top_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "T1b"]], |
| "network": [ |
| [ |
| (4, 5, -7, -4, -2, 3, 9), |
| (7, 8, -8, -5, -3, 6, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_neg_x_pos_y_expectation_top_left_open: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "T1b"]], |
| "network": [ |
| [ |
| (4, 5, -7, -4, -2, 3, -9), |
| (7, 8, -8, -5, -3, 6, -10), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_neg_x_pos_y_expectation_top_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "C2", "C3", "T3b"]], |
| "network": [ |
| [ |
| (3, 4, 5, 7, -5, -2, -7), |
| (8, 9, 10, 11, -6, -3, -8), |
| (-1, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_neg_x_pos_y_expectation_bottom_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "C6", "T6b"]], |
| "network": [ |
| [ |
| (7, -7, -4, 3, 4, 5, -1), |
| (11, -8, -5, 8, 9, 10, -2), |
| (-3, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_neg_x_pos_y_expectation_bottom_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3a", "C4", "T4b"]], |
| "network": [ |
| [ |
| (-4, -7, 3, 4, 5, -2, 9), |
| (-5, -8, 6, 7, 8, -3, 9), |
| (-6, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_neg_x_pos_y_expectation_bottom_right_open: ( |
| Definition |
| ) = { |
| "tensors": [["tensor", "tensor_conj", "T3a", "C4", "T4b"]], |
| "network": [ |
| [ |
| (-4, -7, 3, 4, 5, -2, -9), |
| (-5, -8, 6, 7, 8, -3, -10), |
| (-6, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_pos_x_2_pos_y_expectation_top_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "C1", "T1b"]], |
| "network": [ |
| [ |
| (5, 7, -7, -4, 3, 4, -1), |
| (10, 11, -8, -5, 8, 9, -2), |
| (-3, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_pos_x_2_pos_y_expectation_top_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "C2", "T2b"]], |
| "network": [ |
| [ |
| (3, 4, 5, -7, -4, -2, 9), |
| (6, 7, 8, -8, -5, -3, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_pos_x_2_pos_y_expectation_top_right_open: ( |
| Definition |
| ) = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "C2", "T2b"]], |
| "network": [ |
| [ |
| (3, 4, 5, -7, -4, -2, -9), |
| (6, 7, 8, -8, -5, -3, -10), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_pos_x_2_pos_y_expectation_bottom_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "T5b"]], |
| "network": [ |
| [ |
| (-2, -4, -7, 3, 4, 5, 9), |
| (-3, -5, -8, 6, 7, 8, 9), |
| (-6, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_pos_x_2_pos_y_expectation_bottom_left_open: ( |
| Definition |
| ) = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "T5b"]], |
| "network": [ |
| [ |
| (-2, -4, -7, 3, 4, 5, -9), |
| (-3, -5, -8, 6, 7, 8, -10), |
| (-6, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_pos_x_2_pos_y_expectation_bottom_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "C3", "C4", "T4b"]], |
| "network": [ |
| [ |
| (-2, 3, 4, 5, 7, -5, -7), |
| (-3, 8, 9, 10, 11, -6, -8), |
| (-1, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_2_pos_x_pos_y_expectation_top: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "C2", "T2b"]], |
| "network": [ |
| [ |
| (4, 5, 7, -7, -4, 3, -1), |
| (9, 10, 11, -8, -5, 8, -2), |
| (-3, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_2_pos_x_pos_y_expectation_middle_left: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "T6b"]], |
| "network": [ |
| [ |
| (5, -2, -4, -7, 3, 4, 9), |
| (8, -3, -5, -8, 6, 7, 9), |
| (-6, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_2_pos_x_pos_y_expectation_middle_left_open: ( |
| Definition |
| ) = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "T6b"]], |
| "network": [ |
| [ |
| (5, -2, -4, -7, 3, 4, -9), |
| (8, -3, -5, -8, 6, 7, -10), |
| (-6, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_2_pos_x_pos_y_expectation_middle_right: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "C3", "T3b"]], |
| "network": [ |
| [ |
| (-2, 3, 4, 5, -7, -4, 9), |
| (-3, 6, 7, 8, -8, -5, 9), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_2_pos_x_pos_y_expectation_middle_right_open: ( |
| Definition |
| ) = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "C3", "T3b"]], |
| "network": [ |
| [ |
| (-2, 3, 4, 5, -7, -4, -9), |
| (-3, 6, 7, 8, -8, -5, -10), |
| (-1, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_next_nearest_2_pos_x_pos_y_expectation_bottom: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T3a", "C4", "C5", "T5b"]], |
| "network": [ |
| [ |
| (-5, -2, 3, 4, 5, 7, -7), |
| (-6, -3, 8, 9, 10, 11, -8), |
| (-1, 3, 8, 1), |
| (1, 4, 9, 2), |
| (2, 5, 10, 6), |
| (6, 7, 11, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corrlen_vec_60: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "C2", "C3", "T3b"]], |
| "network": [ |
| [ |
| (3, 4, 5, 11, -2, 14, 9), |
| (6, 7, 8, 12, -3, 15, 9), |
| (-1, 14, 15, 13), |
| (13, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 10), |
| (10, 11, 12, -4), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corrlen_vec_120: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T5a", "C6", "C1", "C2", "T2b"]], |
| "network": [ |
| [ |
| (4, 5, 14, -2, 11, 3, 9), |
| (7, 8, 15, -3, 12, 6, 9), |
| (-4, 11, 12, 10), |
| (10, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 13), |
| (13, 14, 15, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corrlen_vec_180: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "C6", "C1", "T1b"]], |
| "network": [ |
| [ |
| (5, 14, -2, 11, 3, 4, 9), |
| (8, 15, -3, 12, 6, 7, 9), |
| (-4, 11, 12, 10), |
| (10, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 13), |
| (13, 14, 15, -1), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corrlen_absorb_60: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "T6b", "T3a", "T3b"], "vec"], |
| "network": [ |
| [ |
| (3, 4, 12, 13, -2, 5, 9), |
| (6, 7, 14, 15, -3, 8, 9), |
| (-1, 5, 8, 1), |
| (1, 3, 6, 2), |
| (11, 12, 14, 10), |
| (10, 13, 15, -4), |
| ], |
| [2, 4, 7, 11], |
| ], |
| } |
|
|
| triangular_ctmrg_corrlen_absorb_120: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "T2b", "T5a", "T5b"], "vec"], |
| "network": [ |
| [ |
| (3, 4, 5, -2, 12, 13, 9), |
| (6, 7, 8, -3, 14, 15, 9), |
| (2, 4, 7, 1), |
| (1, 5, 8, -1), |
| (-4, 12, 14, 10), |
| (10, 13, 15, 11), |
| ], |
| [2, 3, 6, 11], |
| ], |
| } |
|
|
| triangular_ctmrg_corrlen_absorb_180: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T1a", "T1b", "T4a", "T4b"], "vec"], |
| "network": [ |
| [ |
| (3, 4, -2, 12, 13, 5, 9), |
| (6, 7, -3, 14, 15, 8, 9), |
| (2, 3, 6, 1), |
| (1, 4, 7, -1), |
| (-4, 12, 14, 10), |
| (10, 13, 15, 11), |
| ], |
| [2, 5, 8, 11], |
| ], |
| } |
|
|
| |
|
|
| triangular_ctmrg_corner_90_expectation: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T6a", "C1", "C2", "T2b"]], |
| "network": [ |
| [ |
| (3, 4, 10, -7, -4, 5, -1), |
| (6, 7, 11, -8, -5, 8, -2), |
| (-3, 5, 8, 1), |
| (1, 3, 6, 2), |
| (2, 4, 7, 9), |
| (9, 10, 11, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corner_210_expectation: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T4a", "C5", "C6", "T6b"]], |
| "network": [ |
| [ |
| (10, -7, -4, 4, 5, 3, -1), |
| (11, -8, -5, 7, 8, 6, -2), |
| (-3, 4, 7, 1), |
| (1, 5, 8, 2), |
| (2, 3, 6, 9), |
| (9, 10, 11, -6), |
| ], |
| ], |
| } |
|
|
| triangular_ctmrg_corner_330_expectation: Definition = { |
| "tensors": [["tensor", "tensor_conj", "T2a", "C3", "C4", "T4b"]], |
| "network": [ |
| [ |
| (-4, 3, 4, 5, 10, -7, -1), |
| (-5, 6, 7, 8, 11, -8, -2), |
| (-3, 3, 6, 1), |
| (1, 4, 7, 2), |
| (2, 5, 8, 9), |
| (9, 10, 11, -6), |
| ], |
| ], |
| } |
|
|
| precondition_operator: Definition = { |
| "tensors": [["C1", "T1", "C2", "T2", "C3", "T3", "C4", "T4"], "ket_tensor"], |
| "network": [ |
| [ |
| (2, 12), |
| (12, 9, -5, 3), |
| (3, 8), |
| (10, -4, 4, 8), |
| (11, 4), |
| (1, 11, -2, 7), |
| (1, 5), |
| (5, -1, 6, 2), |
| ], |
| (6, 7, -3, 10, 9), |
| ], |
| } |
|
|
| precondition_operator_triangular: Definition = { |
| "tensors": [["C1", "C2", "C3", "C4", "C5", "C6"], "ket_tensor"], |
| "network": [ |
| [ |
| (12, 5, -1, 1), |
| (1, 6, -2, 2), |
| (2, 7, -3, 8), |
| (8, 9, -4, 3), |
| (3, 10, -5, 4), |
| (4, 11, -6, 12), |
| ], |
| (5, 6, 7, 9, 10, 11, -7), |
| ], |
| } |
|
|
| precondition_operator_split_transfer: Definition = { |
| "tensors": [ |
| [ |
| "C1", |
| "T1_ket", |
| "T1_bra", |
| "C2", |
| "T2_ket", |
| "T2_bra", |
| "C3", |
| "T3_bra", |
| "T3_ket", |
| "C4", |
| "T4_bra", |
| "T4_ket", |
| ], |
| "ket_tensor", |
| ], |
| "network": [ |
| [ |
| (1, 2), |
| (2, 13, 3), |
| (3, -5, 4), |
| (4, 5), |
| (6, 14, 5), |
| (7, -4, 6), |
| (8, 7), |
| (9, 15, 8), |
| (10, -2, 9), |
| (10, 11), |
| (11, 16, 12), |
| (12, -1, 1), |
| ], |
| (16, 15, -3, 14, 13), |
| ], |
| } |
|
|
|
|
| Definitions._prepare_defs() |
|
|