-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
- Qiskit Terra version: 0.25.0 (main)
- Python version: 3.9
- Operating system: Windows
What is happening?
Channel index validation doesn't produce a PulseError
when the channel is either non-integer or negative. Only when both are true.
How can we reproduce the issue?
The following should produce a PulseError
, but it doesn't:
from qiskit import pulse
pulse.DriveChannel(0.5)
pulse.DriveChannel(-1)
Because of this line, only when the index is both not an integer and negative, an error is raised. This does raise a PulseError
:
pulse.DriveChannel(-1.5)
What should happen?
A PulseError
should be raised if either of the conditions are met.
Any suggestions?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working