Skip to content

Commit

Permalink
Remove deprecated arguments (Qiskit/qiskit#9542)
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko authored Feb 7, 2023
1 parent db81753 commit 2f21bfa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qiskit_ibm_runtime/fake_provider/fake_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ def _get_noise_model_from_backend_v2(
temperature=0,
gate_lengths=None,
gate_length_units="ns",
standard_gates=None,
):
"""Build noise model from BackendV2.
Expand Down Expand Up @@ -406,7 +405,6 @@ def _get_noise_model_from_backend_v2(
gate_lengths=gate_lengths,
gate_length_units=gate_length_units,
temperature=temperature,
standard_gates=standard_gates,
)
for name, qubits, error in gate_errors:
noise_model.add_quantum_error(error, name, qubits)
Expand Down Expand Up @@ -459,7 +457,7 @@ def _setup_sim(self):

self.sim = aer.AerSimulator()
if self.properties():
noise_model = NoiseModel.from_backend(self, warnings=False)
noise_model = NoiseModel.from_backend(self)
self.sim.set_options(noise_model=noise_model)
# Update fake backend default options too to avoid overwriting
# it when run() is called
Expand Down

0 comments on commit 2f21bfa

Please sign in to comment.