Skip to content

Commit

Permalink
Fix length SSB wfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ristè committed Nov 13, 2019
1 parent c0b8956 commit f121681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QGL/drivers/APSPattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def build_waveforms(seqs, shapeLib):
shape = np.exp(1j * wf.phase) * wf.amp * shapeLib[wf.key]
if wf.frequency != 0 and wf.amp != 0:
shape *= np.exp(
-1j * 2 * np.pi * wf.frequency * np.arange(wf.length) /
-1j * 2 * np.pi * wf.frequency * np.arange(len(shape)) /
SAMPLING_RATE) #minus from negative frequency qubits
wfLib[wf_sig(wf)] = shape
return wfLib
Expand Down

0 comments on commit f121681

Please sign in to comment.