[BUG] Can't initialize ParticleConservingU1/2
with default init_state
#5522
Labels
bug 🐛
Something isn't working
ParticleConservingU1/2
with default init_state
#5522
Expected behavior
ParticleConservingU1
andParticleConservingU2
can be initialized with their default kwargs.Actual behavior
They error out with
init_state=None
(the default setting)Additional information
While it may be intended that users should provide an
init_state
, it is not good practice to have keyword arguments with invalid defaults.None
should be interpreted as a validinit_state
, liketuple(0 for _ in wires)
or so.If
init_state
should be provided by users always,init_state
should be a positional arg, not a kwarg.Source code
Tracebacks
System information
Existing GitHub issues
The text was updated successfully, but these errors were encountered: