Skip to content

Commit f5a773b

Browse files
committed
multiple fixes
1 parent 8f86430 commit f5a773b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

frontend/catalyst/pipelines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def get_enforce_runtime_invariants_stage(_options: CompileOptions) -> List[str]:
174174
# But qnodes targeting other backends may choose to lower
175175
# this into something else.
176176
"builtin.module(inline)",
177+
"split-multiple-tapes",
177178
"inline-nested-module",
178179
]
179180
return enforce_runtime_invariants

frontend/catalyst/qfunc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ def __call__(self, *args, **kwargs):
132132
debug_info = kwargs.pop("debug_info", None)
133133

134134
import jax
135+
from functools import partial
135136

136-
@jax.jit
137+
@partial(jax.jit, static_argnums=static_argnums)
137138
def _eval_quantum(*args, **kwargs):
138139
closed_jaxpr, out_type, out_tree, out_tree_exp = trace_quantum_function(
139140
self.func,

0 commit comments

Comments
 (0)