Skip to content

Commit

Permalink
merge trajs
Browse files Browse the repository at this point in the history
  • Loading branch information
andgoldschmidt committed Nov 14, 2024
1 parent d9c8296 commit f0933ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/problem_templates/quantum_state_sampling_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function QuantumStateSamplingProblem(
)
end

traj = NamedTrajectories.merge(
traj = merge(
trajs,
merge_names=(; a=1, da=1, dda=1, Δt=1),
free_time=piccolo_options.free_time
Expand Down
2 changes: 1 addition & 1 deletion src/problem_templates/unitary_direct_sum_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function UnitaryDirectSumProblem(
# Build the direct sum system

# merge suffix trajectories
traj = direct_sum([add_suffix(p.trajectory, ℓ) for (p, ℓ) zip(probs, prob_labels)])
traj = merge([add_suffix(p.trajectory, ℓ) for (p, ℓ) zip(probs, prob_labels)])

# add noise to control data (avoid restoration)
if drive_reset_ratio > 0
Expand Down
2 changes: 1 addition & 1 deletion src/problem_templates/unitary_sampling_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function UnitarySamplingProblem(
)
end

traj = NamedTrajectories.merge(
traj = merge(
trajs,
merge_names=(; a=1, da=1, dda=1, Δt=1),
free_time=piccolo_options.free_time
Expand Down

0 comments on commit f0933ef

Please sign in to comment.