Closed thierry-martinez closed 1 month ago
I also encountered it.
@shinich1
Have you checked the test_gflow.py::test_rand_circ_gflow
?
@shinich1 Have you checked the
test_gflow.py::test_rand_circ_gflow
?
Actually, test passed without any fix on my side (I removed the skip command and changed the seed when trying). Somehow I haven't pushed it but we need to remove this line. https://github.com/TeamGraphix/graphix/blob/19eb94cabccf0ca9f9ad2b765a2f2bfbf65bba93/tests/test_gflow.py#L510
Bug description The following tests are broken when tested with a different seed:
test_pattern.py::test_pauli_measurment_opt_gate
test_pattern.py::test_pauli_measurment_opt_gate_transpiler
test_pattern.py::test_pauli_measurment_opt_gate_transpiler_without_signalshift
test_gflow.py::test_rand_circ_gflow
To Reproduce The failures in
test_pattern.py
can be observed by addingin the beginning of the method
test_pauli_measurment_opt_gate
(changing theSEED
value in the beginning of the file will not change the behavior, since the seed value is overridden by other tests).The failure in
test_gflow.py
can be observed by changing the value ofseed
in the beginning of the file.Expected behavior Changing the seed should not break the tests.
Environment (please complete the following information):
Additional context I noticed these failures in an effort to address https://github.com/TeamGraphix/graphix/issues/65