Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
doichanj committed Sep 12, 2024
1 parent e215087 commit 122594f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qiskit_aer/noise/passes/local_noise_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ def run(self, dag: DAGCircuit) -> DAGCircuit:
if isinstance(new_op, QuantumCircuit):
# If the new op is a quantum circuit, compose its DAG with the new dag
# so that it is unrolled rather than added as an opaque instruction
new_dag.compose(circuit_to_dag(new_op), qubits=list(node.qargs)) # never touch clbits
new_dag.compose(
circuit_to_dag(new_op), qubits=list(node.qargs)
) # never touch clbits
else:
# Otherwise append the instruction returned by the function
new_dag.apply_operation_back(new_op, qargs=node.qargs) # never touch cargs
Expand Down

0 comments on commit 122594f

Please sign in to comment.