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

Pulse drawer does not work with V2 backends from IBM Runtime #12580

Closed
nonhermitian opened this issue Jun 14, 2024 · 1 comment
Closed

Pulse drawer does not work with V2 backends from IBM Runtime #12580

nonhermitian opened this issue Jun 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nonhermitian
Copy link
Contributor

nonhermitian commented Jun 14, 2024

Environment

  • Qiskit version: 1.1
  • Python version:
  • Operating system:

What is happening?

from qiskit import QuantumCircuit, transpile, schedule
from qiskit.visualization.pulse_v2 import draw
from qiskit_ibm_runtime import QiskitRuntimeService

service = QiskitRuntimeService()

backend = service.get_backend('ibm_sherbrooke')
 
qc = QuantumCircuit(2)
qc.cx(0, 1)
trans_qc = transpile(qc, backend)
sched = schedule(trans_qc, backend)
 
draw(sched, backend=backend)

File ~/mambaforge/envs/qiskit/lib/python3.11/site-packages/qiskit/visualization/pulse_v2/device_info.py:113, in OpenPulseBackendInfo.create_from_backend(cls, backend)
110 defaults = backend.defaults()
112 # load name
--> 113 name = backend.name()
115 # load cycle time
116 dt = configuration.dt

TypeError: 'str' object is not callable

How can we reproduce the issue?

do above

What should happen?

It should draw

Any suggestions?

It is obviously just the change from method to attribute in the classes

@nonhermitian nonhermitian added the bug Something isn't working label Jun 14, 2024
@ElePT
Copy link
Contributor

ElePT commented Jun 21, 2024

Fixed by @nkanazawa1989 in #12608.

@ElePT ElePT closed this as completed Jun 21, 2024
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

No branches or pull requests

2 participants