In #594 we noticed that significant slowdown happens due to how slow nqubits and code_n are when called on a difficult to construct code.
A test like (@timed nqubit(code) ) < 10 seconds should be added to code properties to ensure we do not have such a slowdown.