Skip to content

Commit

Permalink
chore: Fix rebase leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Jun 25, 2024
1 parent f0b297a commit 4758a16
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 48 deletions.
4 changes: 0 additions & 4 deletions src/qibolab/pulses/envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ class BaseEnvelope(ABC, Model):
Generates both i (in-phase) and q (quadrature) components.
"""

def window(self, samples: int):
"""Individual timing of each sample."""
return np.linspace(0, self.duration, samples)

def i(self, samples: int) -> Waveform:
"""In-phase envelope."""
return np.zeros(samples)
Expand Down
4 changes: 2 additions & 2 deletions src/qibolab/pulses/pulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ def id(self) -> int:

def i(self, sampling_rate: float) -> Waveform:
"""The envelope waveform of the i component of the pulse."""
samples = int(self.envelope.duration * sampling_rate)
samples = int(self.duration * sampling_rate)
return self.amplitude * self.envelope.i(samples)

def q(self, sampling_rate: float) -> Waveform:
"""The envelope waveform of the q component of the pulse."""
samples = int(self.envelope.duration * sampling_rate)
samples = int(self.duration * sampling_rate)
return self.amplitude * self.envelope.q(samples)

def envelopes(self, sampling_rate: float) -> IqWaveform:
Expand Down
42 changes: 0 additions & 42 deletions src/qibolab/pulses/waveform.py

This file was deleted.

0 comments on commit 4758a16

Please sign in to comment.