Skip to content

Commit

Permalink
chore: drop find_max function as it is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Aug 13, 2024
1 parent 184996a commit e6f7a89
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/qibolab/compilers/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
rz_rule,
z_rule,
)
from qibolab.components import Channel
from qibolab.platform import Platform
from qibolab.pulses import Delay, PulseSequence
from qibolab.qubits import QubitId
Expand Down Expand Up @@ -151,12 +150,6 @@ def compile(
measurement_map = {}
channel_clock = defaultdict(float)

def find_max(channels: list[Channel]):
return max(channel_clock[ch.name] for ch in channels)

def find_max(channels: list[Channel]):
return max(channel_clock[ch.name] for ch in channels)

def qubit_clock(el: QubitId):
elements = platform.qubits if el in platform.qubits else platform.couplers
return max(channel_clock[ch.name] for ch in elements[el].channels)
Expand Down

0 comments on commit e6f7a89

Please sign in to comment.