Skip to content

Commit

Permalink
simplify creation of list of logical signals
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-k committed Feb 8, 2024
1 parent 2b87cf5 commit 7e99c34
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/qibolab/instruments/zhinst.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,19 +662,7 @@ def create_exp(self, qubits, couplers, options):
"""Zurich experiment initialization using their Experiment class."""

# Setting experiment signal lines
signals = []
for coupler in couplers.values():
signals.append(lo.ExperimentSignal(f"couplerflux{coupler.name}"))

for qubit in qubits.values():
q = qubit.name # pylint: disable=C0103
if len(self.sequence[f"drive{q}"]) != 0:
signals.append(lo.ExperimentSignal(f"drive{q}"))
if qubit.flux is not None:
signals.append(lo.ExperimentSignal(f"flux{q}"))
if len(self.sequence[f"readout{q}"]) != 0:
signals.append(lo.ExperimentSignal(f"measure{q}"))
signals.append(lo.ExperimentSignal(f"acquire{q}"))
signals = [lo.ExperimentSignal(name) for name in self.signal_map.keys()]

exp = lo.Experiment(
uid="Sequence",
Expand Down

0 comments on commit 7e99c34

Please sign in to comment.