Skip to content

Commit

Permalink
Update GenericBackendV2 (#11704)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT authored Feb 1, 2024
1 parent fd0326d commit 89d403d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qiskit/providers/fake_provider/generic_backend_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __init__(
if num_qubits != self._coupling_map.size():
raise QiskitError(
f"The number of qubits (got {num_qubits}) must match "
f"the size of the provided coupling map (got {coupling_map.size()})."
f"the size of the provided coupling map (got {self._coupling_map.size()})."
)

self._basis_gates = (
Expand Down Expand Up @@ -434,7 +434,8 @@ def _add_noisy_instruction_to_target(
instruction.name, qargs
)
for qubit in qargs:
self._target[instruction.name][(qubit,)].calibration = calibration_entry
if qubit < self.num_qubits:
self._target[instruction.name][(qubit,)].calibration = calibration_entry

def run(self, run_input, **options):
"""Run on the backend using a simulator.
Expand Down

0 comments on commit 89d403d

Please sign in to comment.