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 visualization sometimes omits channels #8981

Closed
wshanks opened this issue Oct 21, 2022 · 1 comment
Closed

Pulse visualization sometimes omits channels #8981

wshanks opened this issue Oct 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@wshanks
Copy link
Contributor

wshanks commented Oct 21, 2022

Environment

  • Qiskit Terra version: 0.22.0
  • Python version: 3.10
  • Operating system: Linux

What is happening?

Sometimes the draw() on a pulse schedule produces a visualization with missing channels.

How can we reproduce the issue?

For the environment given above, this can be reproduced with:

from qiskit import pulse
from qiskit.providers.fake_provider import FakeMumbai

backend = FakeMumbai()

amp = 0.06
duration_dt = 224
with pulse.build(backend=backend) as sched:
    drive_pulse = pulse.Constant(duration_dt, amp)
    pulse.play(drive_pulse, pulse.DriveChannel(2))
    pulse.play(drive_pulse, pulse.DriveChannel(25))
sched.draw()

It depends on a Python set iteration order, so the behavior might vary across environments.

What should happen?

All channels should be displayed in the visualization.

Any suggestions?

See #8974

@wshanks wshanks added the bug Something isn't working label Oct 21, 2022
wshanks added a commit to wshanks/qiskit-terra that referenced this issue Oct 21, 2022
mergify bot added a commit that referenced this issue Oct 24, 2022
* Modify pulse visualizer test to fail due to missing channel

Reproduces #8981

* Avoid skipping channels in pulse visualizer

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@mtreinish
Copy link
Member

Fixed by #8974

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