Skip to content

Commit

Permalink
fix verbose, test separation
Browse files Browse the repository at this point in the history
  • Loading branch information
andgoldschmidt committed Nov 14, 2024
1 parent c62c9db commit d9c8296
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function trajectory_history_callback(prob::QuantumControlProblem)
return callback, trajectory_history
end

# ========================================================================== #
# *************************************************************************** #

@testitem "Callback returns false early stops" begin
using MathOptInterface
Expand Down
2 changes: 1 addition & 1 deletion src/isomorphisms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ iso_dm(ρ::AbstractMatrix) = ket_to_iso(vec(ρ))



# =========================================================================== #
# *************************************************************************** #

@testitem "Test isomorphism utilities" begin
using LinearAlgebra
Expand Down
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 @@ -158,7 +158,7 @@ function QuantumStateSamplingProblem(
return QuantumStateSamplingProblem(systems, [ψ_init], [ψ_goal], args...; kwargs...)
end

# ============================================================================= #
# *************************************************************************** #

@testitem "Sample systems with single initial, target" begin
# System
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 @@ -198,7 +198,7 @@ function UnitarySamplingProblem(
)
end

# =============================================================================
# *************************************************************************** #

@testitem "Sample robustness test" begin
using Distributions
Expand Down
2 changes: 1 addition & 1 deletion src/quantum_object_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function create(levels::Int)
return collect(annihilate(levels)')
end

# ============================================================================= #
# *************************************************************************** #

@testitem "Test ket_from_bitstring function" begin
using LinearAlgebra
Expand Down
2 changes: 1 addition & 1 deletion src/quantum_system_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function is_reachable(
)
end

# ============================================================================= #
# *************************************************************************** #

@testitem "Lie algebra basis" begin
# Check 1 qubit with complete basis
Expand Down
2 changes: 1 addition & 1 deletion src/quantum_systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ function (csys::CompositeQuantumSystem)(;
)
end

# ============================================================================= #
# *************************************************************************** #

@testitem "System creation" begin
H_drift = GATES[:Z]
Expand Down
2 changes: 1 addition & 1 deletion src/rollouts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ function lab_frame_unitary_rollout_trajectory(
)
end

# ============================================================================= #
# *************************************************************************** #

@testitem "Test rollouts using fidelities" begin
using ExponentialAction
Expand Down
1 change: 0 additions & 1 deletion src/trajectory_initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ function initialize_trajectory(
args...;
phase_data=phase_data,
a_guess=a_guess,
verbose=verbose,
kwargs...
)
end
Expand Down
2 changes: 1 addition & 1 deletion src/trajectory_interpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function (traj_int::DataInterpolation)(T::Int)
return traj_int(times)
end

# =========================================================================
# *************************************************************************** #

@testitem "Trajectory interpolation test" begin
include("../test/test_utils.jl")
Expand Down

0 comments on commit d9c8296

Please sign in to comment.