Skip to content

Commit

Permalink
Fix execution with circuit initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed May 17, 2023
1 parent 99656b4 commit 536f941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibolab/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def execute_circuit(
CircuitResult object containing the results acquired from the execution.
"""
if isinstance(initial_state, type(circuit)):
self.execute_circuit(
return self.execute_circuit(
circuit=initial_state + circuit,
nshots=nshots,
fuse_one_qubit=fuse_one_qubit,
Expand Down

0 comments on commit 536f941

Please sign in to comment.