System and Environment Information
Not applicable/relevant. (macOS 26.5.1, Python 3.13.13)
Bug Description
If the constructor of StabilizerCode receives the program state "there are no logical operators" as an empty list instead of None or an empty StabilizerTableau, it crashes because the method get_generators does not receive an additional n as a parameter.
That case of empty lists should either be handled gracefully or fixed easily.
Steps to Reproduce
StabilizerCode(["XX", "ZZ"], z_logicals=[], x_logicals=[])
System and Environment Information
Not applicable/relevant. (macOS 26.5.1, Python 3.13.13)
Bug Description
If the constructor of StabilizerCode receives the program state "there are no logical operators" as an empty list instead of None or an empty StabilizerTableau, it crashes because the method
get_generatorsdoes not receive an additional n as a parameter.That case of empty lists should either be handled gracefully or fixed easily.
Steps to Reproduce
StabilizerCode(["XX", "ZZ"], z_logicals=[], x_logicals=[])