Skip to content

Commit

Permalink
Fix Conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Jun 26, 2024
1 parent 58d5154 commit afc99cd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions qiskit/providers/fake_provider/generic_backend_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,16 +368,13 @@ def _build_generic_target(self):
f"in the standard qiskit circuit library."
)
gate = self._supported_gates[name]
<<<<<<< HEAD
noise_params = self._get_noise_defaults(name)
=======

if self.num_qubits < gate.num_qubits:
raise QiskitError(
f"Provided basis gate {name} needs more qubits than {self.num_qubits}, "
f"which is the size of the backend."
)
noise_params = self._get_noise_defaults(name, gate.num_qubits)
>>>>>>> e36027c01 (GenericBackendV2 should fail when the backend cannot allocate the basis gate because its size (#12653))
noise_params = self._get_noise_defaults(name)
self._add_noisy_instruction_to_target(gate, noise_params, calibration_inst_map)

if self._control_flow:
Expand Down

0 comments on commit afc99cd

Please sign in to comment.