improves the tests for the Detectors because before it was using sets to represent the triggered detectors (but sets do not have repeated elements, which lead to possible incorrect tests). Now we are using sorted lists.
solves the bug in Detectors.build_from_data when there was not ancilla reset. The cause was that when passing anc_reset the function was also assuming that the measurement outcomes built from the data qubits had also been "measured without reset", but the data qubit outcomes always correspond to syndrome outcomes.
Closes #90.
This PR also does the following:
Detectors
because before it was using sets to represent the triggered detectors (but sets do not have repeated elements, which lead to possible incorrect tests). Now we are using sorted lists.Detectors.build_from_data
when there was not ancilla reset. The cause was that when passinganc_reset
the function was also assuming that the measurement outcomes built from the data qubits had also been "measured without reset", but the data qubit outcomes always correspond to syndrome outcomes.