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

Remove qobj supports as an argument of AerSimulator.run() #1720

Open
hhorii opened this issue Feb 7, 2023 · 1 comment
Open

Remove qobj supports as an argument of AerSimulator.run() #1720

hhorii opened this issue Feb 7, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@hhorii
Copy link
Collaborator

hhorii commented Feb 7, 2023

What is the expected behavior?

AerSimulator should not support QasmQobj and PulseQobj to run simulation.

They are deprecated in 0.9.0.

if isinstance(circuits, (QasmQobj, PulseQobj)):
warnings.warn(
'Using a qobj for run() is deprecated as of qiskit-aer 0.9.0'
' and will be removed no sooner than 3 months from that release'
' date. Transpiled circuits should now be passed directly using'
' `backend.run(circuits, **run_options).',
DeprecationWarning, stacklevel=2)

@hhorii hhorii added the enhancement New feature or request label Feb 7, 2023
@hhorii hhorii added this to the Aer 0.12.0 milestone Feb 7, 2023
@hhorii hhorii removed this from the Aer 0.12.0 milestone Feb 15, 2023
@hhorii
Copy link
Collaborator Author

hhorii commented Feb 20, 2023

Even If we remove qobj supports in arguments, qobj will be still necessary to execute pulse simulation and DASK-based qasm simulation. That is, assemble() will be internally called in run(). To generate qobj for pulse, arguments for assemble() is necessary. For example, verify_wheel.py executes pulse simulation as follows

    qobj = assemble([schedule],
                    backend=backend_sim,
                    qubit_lo_freq=[5.0],
                    meas_level=1,
                    meas_return='avg',
                    shots=1)
    results = backend_sim.run(qobj, system_model=system_model).result()

Note that pulse simulation requires different arguments for assemble() and run(). If we remove qobj supports, the same arguments will be specified and unfortunately pulse simulation doesn't work correctly.

I think that qobj should be removed after unsupport of pulse simulation (#1722).

@hhorii hhorii added this to the Aer 0.13.0 milestone Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant