Skip to content

Commit

Permalink
Fix compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jesus-talavera-ibm committed Dec 10, 2024
1 parent eb3e7e9 commit dd10787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit_ibm_transpiler/ai/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ def copy_dag_metadata(dag, target_dag):
DAGCircuit: An empty copy of self.
"""
target_dag.name = dag.name
target_dag._global_phase = dag._global_phase
target_dag.global_phase = dag.global_phase
target_dag.duration = dag.duration
target_dag.unit = dag.unit
target_dag.metadata = dag.metadata
target_dag._key_cache = dag._key_cache
# target_dag._key_cache = dag._key_cache

return target_dag

0 comments on commit dd10787

Please sign in to comment.