Skip to content

Commit 3f2315f

Browse files
committed
fixed an issue that made recursive_qs_search incompatible with jasp
1 parent 739e1c9 commit 3f2315f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qrisp/core/session_merging_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def recursive_qv_search(input):
394394
for key in input.keys():
395395
result += recursive_qv_search(key)
396396
result += recursive_qv_search(input[key])
397-
else:
397+
elif isinstance(input, (tuple, list)):
398398
for i in range(len(input)):
399399
result += recursive_qv_search(input[i])
400400
else:

0 commit comments

Comments
 (0)