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

Duplicate parameter_binds #1771

Closed
jyu00 opened this issue Apr 4, 2023 · 2 comments · Fixed by #1792
Closed

Duplicate parameter_binds #1771

jyu00 opened this issue Apr 4, 2023 · 2 comments · Fixed by #1792
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jyu00
Copy link
Contributor

jyu00 commented Apr 4, 2023

Informations

  • Qiskit Aer version: 0.12.0
  • Python version:
  • Operating system:

What is the current behavior?

Qobj is being deprecated so it's probably not worth fixing. But if I assemble() a circuit with an Aer backend, then call its backend.run(), the job would fail with

_run_qobj() got multiple values for argument 'parameter_binds'

because assemble inserts parameter_binds into circuits.config.

Steps to reproduce the problem

from qiskit import transpile, assemble
from qiskit.test.reference_circuits import ReferenceCircuits
from qiskit_aer import Aer

sim = Aer.get_backend("aer_simulator")
bell = ReferenceCircuits.bell()
qobj = assemble(transpile(bell, sim), backend=sim)
sim.run(qobj)

What is the expected behavior?

I can still run a qobj with Aer.

Suggested solutions

@jyu00 jyu00 added the bug Something isn't working label Apr 4, 2023
@hhorii hhorii added this to the Aer 0.12.1 milestone Apr 18, 2023
@bronze7
Copy link

bronze7 commented Apr 28, 2023

I'm having the same issue.

@bronze7
Copy link

bronze7 commented Apr 28, 2023

Run the transpiled circuit directly instead of using QObj. It worked for me.

@hhorii hhorii self-assigned this May 15, 2023
@mergify mergify bot closed this as completed in #1792 May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants