Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
AGaliciaMartinez committed Jan 11, 2022
1 parent 88511b6 commit e7acf4e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import tensornetwork as tn
from itertools import chain

__all__ = ["FiniteTT", ]
__all__ = [
"FiniteTT",
]


class FiniteTT(Network):
Expand Down Expand Up @@ -197,8 +199,8 @@ def _to_tt_format(self):
left_edges += in_edges[i]
left_edges += lbond

right_edges = out_edges[i + 1:]
right_edges += in_edges[i + 1:]
right_edges = out_edges[i + 1 :]
right_edges += in_edges[i + 1 :]
# We flatten the right edges as it is a list of lists
right_edges = list(chain(*right_edges))

Expand Down Expand Up @@ -235,6 +237,7 @@ def _to_tt_format(self):

self._nodes = set(nodes)


def _check_shape(nodes):
"""Check that the nodes have the appropriate shape for the `from_node_list`
method."""
Expand Down

0 comments on commit e7acf4e

Please sign in to comment.