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

AerSimulator does not work for the circuit with barriers and parameters. #1774

Closed
ikkoham opened this issue Apr 7, 2023 · 0 comments · Fixed by #1775
Closed

AerSimulator does not work for the circuit with barriers and parameters. #1774

ikkoham opened this issue Apr 7, 2023 · 0 comments · Fixed by #1775
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ikkoham
Copy link
Collaborator

ikkoham commented Apr 7, 2023

Informations

  • Qiskit Aer version: 0.12 (the following works for 0.11)
  • Python version:
  • Operating system:

What is the current behavior?

AerSimulator does not work for the circuit with barriers and parameters.

Steps to reproduce the problem

from qiskit_aer import AerSimulator
from qiskit.circuit.library import RealAmplitudes

qc1 = RealAmplitudes(1, insert_barriers=True)
AerSimulator().run(qc1.decompose(), parameter_binds=[{k: [0] for k in qc1.parameters}])

raises an error:

Simulation failed and returned the following error message:
ERROR: Failed to load circuits: Invalid parameterized qobj: instruction position out of range

What is the expected behavior?

No error

Suggested solutions

@ikkoham ikkoham added the bug Something isn't working label Apr 7, 2023
@hhorii hhorii added this to the Aer 0.12.1 milestone Apr 7, 2023
@hhorii hhorii self-assigned this Apr 7, 2023
@hhorii hhorii added stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable and removed stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable labels Apr 7, 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.

2 participants