Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
6 changes: 3 additions & 3 deletions test/core-test/quantum_objects_evo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
@test adjoint(a2).data == adjoint(a2.data)

N = 10
a = QobjEvo(destroy(N), Operator, N)
a = QobjEvo(MatrixOperator(sprand(ComplexF64, N, N, 5 / N)), Operator, N)
a_d = a'
X = a + a_d
# Y = 1im * (a - a_d) # Currently doesn't work. Fix in SciMLOperators.jl
Expand Down Expand Up @@ -172,8 +172,8 @@
ψ = fock(N, 1)
@test op1(ψ, p, 0.1) (coef1(p, 0.1) * a + a' * a + coef2(p, 0.1) * a') * ψ

@test iscontant(a) == true
@test iscontant(op1) == false
@test isconstant(a) == true
@test isconstant(op1) == false
@test isconstant(Qobj(a)) == true
end
end
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ using Pkg
using QuantumToolbox
using QuantumToolbox: position, momentum
using Random
using SciMLOperators

const GROUP = get(ENV, "GROUP", "All")

const testdir = dirname(@__FILE__)

println("---- Running tests with $(Threads.nthreads()) threads. ----")

# Put core tests in alphabetical order
core_tests = [
"correlations_and_spectrum.jl",
Expand All @@ -23,6 +22,7 @@ core_tests = [
"permutation.jl",
"progress_bar.jl",
"quantum_objects.jl",
"quantum_objects_evo.jl",
"states_and_operators.jl",
"steady_state.jl",
"time_evolution.jl",
Expand Down
Loading