Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fake backend not to use deprecated arguments in NoiseModel construction #9542

Merged
merged 1 commit into from
Feb 7, 2023
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
4 changes: 1 addition & 3 deletions qiskit/providers/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