You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This definition is too restrictive since it assumes that no new registers may be created which is not true. for example And().controlled() should be MultiAnd which creates an extra junk register.
The text was updated successfully, but these errors were encountered:
The contract (irrespective of whether the registers are RIGHT or THRU) is that the controlled version can only add new registers that comport with CtrlSpec.qdtypes. The system has no idea what to do with the extra junk registers. If you wanted to encode the idea that "this junk needs to get cleaned up by And^dag" you'd use something like #1221
The second return return value of
get_ctrl_system
is_add_ctrled
which is defined ashttps://github.com/quantumlib/Qualtran/blob/a4365b26a01956bb0341f12e673176e3a66ab33b/qualtran/_infra/bloq.py#L384C33-L389
This definition is too restrictive since it assumes that no new registers may be created which is not true. for example And().controlled() should be MultiAnd which creates an extra
junk
register.The text was updated successfully, but these errors were encountered: