Skip to content
Merged
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
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