Skip to content

Commit

Permalink
Bugfix: fix final_soqs for LEFT bloqs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpharrigan committed Oct 6, 2023
1 parent 9021b71 commit 1ab6a7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qualtran/_infra/composite_bloq.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def final_soqs(self) -> Dict[str, SoquetT]:
This method is helpful for finalizing an "add from" operation, see `iter_bloqsoqs`.
"""
if RightDangle not in self._binst_graph:
return {}
final_preds, _ = _binst_to_cxns(RightDangle, binst_graph=self._binst_graph)
return _cxn_to_soq_dict(
self.signature.rights(),
Expand Down

0 comments on commit 1ab6a7d

Please sign in to comment.