Skip to content

Commit

Permalink
Highlight that inputs/outputs are ordered
Browse files Browse the repository at this point in the history
  • Loading branch information
wlcsm committed Aug 20, 2024
1 parent ab1c18e commit aa87098
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions graphix/opengraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class OpenGraph(NamedTuple):
:param inside: the underlying graph state
:param measurements: a dictionary whose key is the ID of a node and the
value is the measurement at that node
:param inputs: a set of IDs of the nodes that are inputs to the graph
:param outputs: a set of IDs of the nodes that are outputs of the graph
:param inputs: an ordered list of node IDs that are inputs to the graph
:param outputs: an ordered list of node IDs that are outputs of the graph
Example
-------
Expand All @@ -67,8 +67,8 @@ class OpenGraph(NamedTuple):

inside: nx.Graph
measurements: dict[int, Measurement]
inputs: list[int]
outputs: list[int]
inputs: list[int] # Inputs are ordered
outputs: list[int] # Outputs are ordered

def __eq__(self, other) -> bool:
"""Checks the two open graphs are equal
Expand Down

0 comments on commit aa87098

Please sign in to comment.