Open nelimee opened 1 month ago
Which of these do you consider high priority?
src/tqec/noise_models/after_clifford_depolarization.py 24 17 29%
src/tqec/noise_models/after_reset_flip.py 9 4 56%
src/tqec/noise_models/base.py 15 8 47%
src/tqec/noise_models/before_measure_flip.py 9 4 56%
src/tqec/noise_models/before_round_data_depolarization.py 7 2 71%
src/tqec/noise_models/idle_qubits.py 15 9 40%
src/tqec/noise_models/multi_qubit_gates.py 12 7 42%
src/tqec/templates/composed.py 115 53 54%
src/tqec/templates/constructions/corner.py 18 10 44%
src/tqec/templates/constructions/qubit.py 23 12 48%
src/tqec/templates/display.py 64 56 12%
src/tqec/plaquette/library/utils/pauli.py 32 25 22%
src/tqec/circuit/operations/transformer.py 57 44 23%
I would say these in order of priority
src/tqec/plaquette/library/utils/pauli.py 32 25 22%
src/tqec/circuit/operations/transformer.py 57 44 23%
src/tqec/templates/composed.py 115 53 54%
src/tqec/templates/constructions/qubit.py 23 12 48%
src/tqec/noise_models/after_clifford_depolarization.py 24 17 29%
src/tqec/noise_models/after_reset_flip.py 9 4 56%
src/tqec/noise_models/base.py 15 8 47%
src/tqec/noise_models/before_measure_flip.py 9 4 56%
src/tqec/noise_models/before_round_data_depolarization.py 7 2 71%
src/tqec/noise_models/idle_qubits.py 15 9 40%
src/tqec/noise_models/multi_qubit_gates.py 12 7 42%
src/tqec/templates/display.py 64 56 12%
src/tqec/templates/constructions/corner.py 18 10 44% << known to be invalid
the first 4 are the most important. Noise models are less important, they did not change since a long time and have been "tested" by generating successfully several Stim circuits since then, so I believe that they are correct.
corner.py
is, if I remember correctly, invalid, and might be significantly changed in the future so I think there is no point in writing tests for it.
display.py
aims at graphically representing the templates, so it is:
Is your feature request related to a problem? Please describe. Running coverage analysis with
python -m pytest --cov=tqec .
on thetqec
library yields the following resultsthat clearly show that some code files are missing unit tests.
Describe the solution you'd like
More unit tests on under-tested code.