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

Max iteration being hit on QV circuits targetting ECR-based systems #9776

Closed
nonhermitian opened this issue Mar 10, 2023 · 2 comments · Fixed by #9612
Closed

Max iteration being hit on QV circuits targetting ECR-based systems #9776

nonhermitian opened this issue Mar 10, 2023 · 2 comments · Fixed by #9612
Labels
bug Something isn't working

Comments

@nonhermitian
Copy link
Contributor

Environment

  • Qiskit Terra version: latest
  • Python version: 3.9
  • Operating system: ubuntu

What is happening?

It seems transpiling QV circuits for ecr based backends raises transpilation warnings for various seed values. It is not hard to find a seed where this issue occurs.

How can we reproduce the issue?

from qiskit import *
from qiskit_ibm_provider import IBMProvider
from qiskit.circuit.library import QuantumVolume

provider = IBMProvider()

qc = QuantumVolume(7, seed=12345)
qc.measure_all()

backend = provider.get_backend('ibm_sherbrooke')
trans_qc = transpile(qc, backend, optimization_level=3)

gives

TranspilerError: 'Maximum iteration reached. max_iteration=1000'

Switching the backend to ibm_kyiv that has the same topology, but uses cx gates rather than ecr works fine.

What should happen?

It should work fine.

Any suggestions?

No response

@nonhermitian nonhermitian added the bug Something isn't working label Mar 10, 2023
@jakelishman
Copy link
Member

Thanks - we're fairly sure this is because an optimisation loop tends to get stuck oscillating between two possible solutions. #9612 should hopefully solve this.

@1ucian0
Copy link
Member

1ucian0 commented Mar 11, 2023

confirmed that #9612 fixes this issue.

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