Skip to content

Commit

Permalink
Fix backend_converter faulty_qubit name error (#1257)
Browse files Browse the repository at this point in the history
* fix backend_converter

* add reno
  • Loading branch information
kt474 committed Dec 5, 2023
1 parent 5010416 commit 6cb18d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qiskit_ibm_runtime/utils/backend_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ def convert_to_target(
if any(qubit in faulty_qubits for qubit in qarg):
continue
target[inst][qarg].calibration = sched
if "delay" not in target:
target.add_instruction(
Delay(Parameter("t")),
{(bit,): None for bit in range(target.num_qubits) if bit not in faulty_qubits},
)
if "delay" not in target:
target.add_instruction(
Delay(Parameter("t")),
{(bit,): None for bit in range(target.num_qubits) if bit not in faulty_qubits},
)
return target


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Fixed an issue where retrieving the `coupling_map` of some backends would result
in a `NameError`.

0 comments on commit 6cb18d0

Please sign in to comment.