diff --git a/src/qrisp/core/session_merging_tools.py b/src/qrisp/core/session_merging_tools.py index 3d733cdc..52af7ff4 100644 --- a/src/qrisp/core/session_merging_tools.py +++ b/src/qrisp/core/session_merging_tools.py @@ -394,7 +394,7 @@ def recursive_qv_search(input): for key in input.keys(): result += recursive_qv_search(key) result += recursive_qv_search(input[key]) - else: + elif isinstance(input, (tuple, list)): for i in range(len(input)): result += recursive_qv_search(input[i]) else: