TeamGraphix / graphix

measurement-based quantum computing (MBQC) compiler and simulator
https://graphix.readthedocs.io
Apache License 2.0
60 stars 21 forks source link

patch for the isolated nodes bug (#36) #37

Closed masato-fuk closed 1 year ago

masato-fuk commented 1 year ago

Before submitting, please check the following:

Then, please fill in below:

Context (if applicable):

na

Description of the change:

Added a missing conditional branch(graphix.pattern l1139-1140). Added a new test for the removal of isolated nodes.

Related issue:

36

also see that checks (github actions) pass. If lint check keeps failing, try installing black==22.8.0 as behavior seems to vary across versions.