-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Ensure probe channels exclusion
- Loading branch information
1 parent
68bd8f3
commit 7c968bd
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
from qibolab._core.identifier import ChannelId | ||
from qibolab._core.sequence import PulseSequence | ||
|
||
__all__ = [] | ||
|
||
def _assert_no_probe(ps: PulseSequence, probes: set[ChannelId]): | ||
return | ||
|
||
def assert_channels_exclusion(ps: PulseSequence, excluded: set[ChannelId]): | ||
"""Deny group of channels. | ||
Mainly used to deny probe channels, since probe events are currently required to be | ||
bundled with acquisitions, cf. :class:`qibolab.Readout`. | ||
An extended discussion about the probe-acquisition merge is found at: | ||
https://github.com/qiboteam/qibolab/pull/1088#issuecomment-2637800857 | ||
""" | ||
assert not any( | ||
ch in excluded for ch, _ in ps | ||
), "Probe channels can not be controlled independently, please use Readout events." |