Coder Social home page Coder Social logo

Comments (2)

nonhermitian avatar nonhermitian commented on June 2, 2024 1

Ahh no your right. The AI transpiler install downgraded me to 1.0.0. Thanks!

from qiskit.

jakelishman avatar jakelishman commented on June 2, 2024

Are you sure you're using Qiskit 1.0.2? I can't reproduce with 1.0.2 nor current main, and I think I already fixed this issue after you raised it before: #11784, #11787.

For what it's worth, here's my complete reproducer script, guessing at your undefined variables, in case they're material:

from qiskit import QuantumCircuit
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager
from qiskit_ibm_runtime import QiskitRuntimeService

prov = QiskitRuntimeService()
eagle_backend = prov.get_backend("ibm_sherbrooke")

N = 14

qc = QuantumCircuit(N)
qc.h(0)
qc.cx(0, range(1,N))
qc.measure_all()

eagle_pm = generate_preset_pass_manager(3, backend=eagle_backend)
trans_qc = eagle_pm.run(qc)

qc2 = QuantumCircuit(N)
qc2.h(N//2)
qc2.cx(range(N//2, 0, -1), range(N//2-1, -1, -1))
qc2.cx(range(N//2, N-1), range(N//2+1, N))
qc2.measure_all()

trans_qc2 = eagle_pm.run(qc2)

from qiskit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.