Skip to content

Commit

Permalink
Fixed sign on phase shift calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Doreban committed Jan 29, 2025
1 parent 865cf5a commit 0862f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/experiment_prototype/interface_classes/sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import inspect
import math
from pathlib import Path
from src.utils.signals import basic_pulse_phase_offset

# third-party
import numpy as np
Expand All @@ -31,7 +30,7 @@
InterfaceClassBase,
)
from experiment_prototype.experiment_exception import ExperimentException
from utils.signals import get_samples, get_phase_shift
from utils.signals import get_samples, get_phase_shift, basic_pulse_phase_offset

# Obtain the module name that imported this log_config
caller = Path(inspect.stack()[-1].filename)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def basic_pulse_phase_offset(exp_slice):
"""
freq_hz = exp_slice.freq * 1e3
tau_s = exp_slice.tau_spacing / 1e6
omega = -2 * np.pi * freq_hz
omega = 2 * np.pi * freq_hz
pulse_sequence = exp_slice.pulse_sequence

num_pulses = len(pulse_sequence)
Expand Down

0 comments on commit 0862f7c

Please sign in to comment.