Skip to content

Commit

Permalink
_assemble internally calls qiskit.providers.basic_provider.basic_simu…
Browse files Browse the repository at this point in the history
…lator.BasicSimulator.configuration
  • Loading branch information
1ucian0 committed Aug 9, 2024
1 parent 79ed7b4 commit c4928ba
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions qiskit/compiler/assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,22 @@ def _assemble(

# assemble either circuits or schedules
if all(isinstance(exp, QuantumCircuit) for exp in experiments):
run_config = _parse_circuit_args(
parameter_binds,
backend,
meas_level,
meas_return,
parametric_pulses,
**run_config_common_dict,
)
with warnings.catch_warnings():
# Internally calls deprecated BasicSimulator.configuration()`
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message=r".+\.basic_provider\.basic_simulator\.BasicSimulator\.configuration.+",
module="qiskit",
)
run_config = _parse_circuit_args(
parameter_binds,
backend,
meas_level,
meas_return,
parametric_pulses,
**run_config_common_dict,
)

# If circuits are parameterized, bind parameters and remove from run_config
bound_experiments, run_config = _expand_parameters(
Expand Down

0 comments on commit c4928ba

Please sign in to comment.