We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49fe6b8 commit 2047148Copy full SHA for 2047148
1 file changed
qualtran/bloqs/chemistry/sparse/sparse_test.py
@@ -76,7 +76,9 @@ def keep_qrom(bloq):
76
if isinstance(k, SelectSwapQROM):
77
qrom_bloq = k
78
break
79
- return qrom_bloq.call_graph()[1][TGate()]
+ if qrom_bloq is None:
80
+ return 0
81
+ return int(qrom_bloq.call_graph()[1].get(TGate(), 0))
82
83
84
@pytest.mark.slow
0 commit comments