1 parent 4b8fe5f commit 42fd72dCopy full SHA for 42fd72d
1 file changed
src/qugrad/systems/_systems.py
@@ -29,6 +29,8 @@ def generate_channel_couplings(number_channels: list[int]) -> np.ndarray[bool]:
29
An entry is `True` if the channel corresponds to the drive.
30
"""
31
number_channels: np.ndarray[int] = np.array(number_channels)
32
+ if len(number_channels) == 0:
33
+ return np.empty((0, 0), dtype=bool)
34
number_channels = number_channels.cumsum()
35
channel_couplings: np.ndarray[bool] = np.zeros((len(number_channels),
36
number_channels[-1]),
0 commit comments