Skip to content

Commit

Permalink
Merge branch 'main' into fix_stabilizer_r_gates
Browse files Browse the repository at this point in the history
  • Loading branch information
hhorii authored Nov 20, 2023
2 parents c6d1f9c + 4dd91d1 commit b301c90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qiskit_aer/backends/aer_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def compile(self, circuits, basis_gates=None, optypes=None):
circuit = self._inline_initialize(circuit, compiled_optypes[idx])
if self._is_dynamic(circuit, compiled_optypes[idx]):
compiled_circ = transpile(
self._inline_circuit(circuit, None, None), basis_gates=basis_gates
self._inline_circuit(circuit, None, None),
basis_gates=basis_gates,
optimization_level=0,
)
compiled_circuits.append(compiled_circ)
# Recompute optype for compiled circuit
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
fixes:
- |
For dynamic circuits, aer_compiler calls transpiler without optimizaiton
level. Because id gates are removed by transpiler, noise applied id gates
did not work correctly. This fix adds optimization_level=0 not to remove
id gates of dynamic circuits

0 comments on commit b301c90

Please sign in to comment.