Skip to content

Commit

Permalink
fix: Correct sweep_range assignment to ensure proper handling of beta…
Browse files Browse the repository at this point in the history
… values in Experiment class
  • Loading branch information
Akinori Machino committed Dec 26, 2024
1 parent 4a49f1a commit d73c4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qubex/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3310,11 +3310,11 @@ def sequence(beta: float) -> dict[str, PulseSequence]:
)
}

sweep_range = beta_range
if stored_beta is not None:
if target in stored_beta:
beta = stored_beta[target]

sweep_range = (beta_range + beta).astype(np.float64)
sweep_range = (beta_range + beta).astype(np.float64)

sweep_data = self.sweep_parameter(
sequence=sequence,
Expand Down

0 comments on commit d73c4cc

Please sign in to comment.