diff --git a/bqskit/ir/gates/circuitgate.py b/bqskit/ir/gates/circuitgate.py index 8c33c4b5..d870b793 100644 --- a/bqskit/ir/gates/circuitgate.py +++ b/bqskit/ir/gates/circuitgate.py @@ -137,6 +137,7 @@ def get_qasm_gate_def(self) -> str: ', '.join([str(p) for p in params]), ', q'.join([str(q) for q in op.location]), ).replace('()', '') + param_index += op.num_params ret += '}\n' return ret