Skip to content

Commit

Permalink
stop use profiled options for pulse
Browse files Browse the repository at this point in the history
  • Loading branch information
hhorii committed Apr 8, 2021
1 parent 6f1bf85 commit 14b7803
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions qiskit/providers/aer/backends/aerbackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,13 @@ def run(self,
qobj = assemble(circuits, self)
num_qubits = (circuits[0] if isinstance(circuits, list) else circuits).num_qubits

# Get profiled options for performance
gpu = backend_options is not None and 'gpu' in backend_options.get('method', '')
profiled_options = get_performance_options(num_qubits, gpu)
for run_option in run_options:
if run_option in profiled_options:
del profiled_options[run_option]
if num_qubits is not None:
# Get profiled options for performance
gpu = backend_options is not None and 'gpu' in backend_options.get('method', '')
profiled_options = get_performance_options(num_qubits, gpu)
for run_option in run_options:
if run_option in profiled_options:
del profiled_options[run_option]

self._add_options_to_qobj(
qobj, backend_options=backend_options, **profiled_options, **run_options)
Expand Down

0 comments on commit 14b7803

Please sign in to comment.