Skip to content

Commit

Permalink
Fix optimization for trajectories with extra keyword args
Browse files Browse the repository at this point in the history
An internal `Trajectory` was constructed incorrectly.  This was causing
an error for trajectories with extra keyword arguments
  • Loading branch information
goerz committed Sep 11, 2024
1 parent c65c854 commit 8e54fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workspace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function GrapeWrk(problem::QuantumControl.ControlProblem; verbose=false)
begin
χ̃ₖ = GradVector(chi_states[k], length(controls))
G̃ₖ = GradGenerator(traj.generator)
Trajectory(χ̃ₖ, G̃ₖ, getfield(traj, :kwargs)...)
Trajectory(χ̃ₖ, G̃ₖ; getfield(traj, :kwargs)...)
end for (k, traj) in enumerate(adjoint_trajectories)
]
_prefixes = ["prop_", "bw_prop_", "grad_prop_"]
Expand Down

0 comments on commit 8e54fbf

Please sign in to comment.