Skip to content

Commit e707caf

Browse files
Add notes in check_runnability docstring
1 parent 1af5432 commit e707caf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

graphix/pattern.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,15 @@ def check_runnability(self) -> None:
15171517
"""Check whether the pattern is runnable.
15181518
15191519
Raises `RunnabilityError` exception if it is not.
1520+
1521+
Notes
1522+
-----
1523+
The runnability check can only guarantee the runnability of
1524+
MBQC+LC patterns. Patterns that make use of custom `BaseN`
1525+
and `BaseM` commands can have additional runnability
1526+
constraints that are not checked by this method. For instance,
1527+
in the Veriphix implementation of VBQC, blind measurements
1528+
have hidden domains that cannot be checked.
15201529
"""
15211530
active = set(self.input_nodes)
15221531
measured = set(self.results)

0 commit comments

Comments
 (0)