diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 81328e73..e55e329d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -26,18 +26,20 @@ jobs: - x64 # - x86 steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v4 with: files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false docs: name: Documentation runs-on: ubuntu-latest diff --git a/src/problem_templates/unitary_minimum_time_problem.jl b/src/problem_templates/unitary_minimum_time_problem.jl index 13c04156..2b70bb93 100644 --- a/src/problem_templates/unitary_minimum_time_problem.jl +++ b/src/problem_templates/unitary_minimum_time_problem.jl @@ -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... ) @@ -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 @@ -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) )