Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
patch min time and test
  • Loading branch information
andgoldschmidt committed Jun 6, 2025
commit efa99ed3497ebb3336a12ec6fd5166c3b8212bc0
12 changes: 6 additions & 6 deletions src/problem_templates/unitary_minimum_time_problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ end
function UnitaryMinimumTimeProblem(
prob::DirectTrajOptProblem,
goal::AbstractPiccoloOperator;
objective::Objective=prob.objective,
constraints::AbstractVector{<:AbstractConstraint}=prob.constraints,
objective::Objective=deepcopy(prob.objective),
constraints::AbstractVector{<:AbstractConstraint}=deepcopy(prob.constraints),
kwargs...
)
return UnitaryMinimumTimeProblem(
prob.trajectory,
deepcopy(prob.trajectory),
goal,
objective,
prob.dynamics,
deepcopy(prob.dynamics),
constraints;
kwargs...
)
Expand All @@ -97,7 +97,7 @@ end
using NamedTrajectories
using PiccoloQuantumObjects

H_drift = PAULIS[:Z]
H_drift = 0.1PAULIS[:Z]
H_drives = [PAULIS[:X], PAULIS[:Y]]
U_goal = GATES[:H]
T = 51
Expand All @@ -106,7 +106,7 @@ end
sys = QuantumSystem(H_drift, H_drives)

prob = UnitarySmoothPulseProblem(
sys, U_goal, T, Δt,
sys, U_goal, T, Δt, Δt_min=Δt * 0.01,
piccolo_options=PiccoloOptions(verbose=false)
)

Expand Down
Loading