Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`.