Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christofbradly committed Sep 24, 2023
1 parent 4491c0a commit 48731ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Hamiltonians.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1389,16 +1389,16 @@ end

@testset "HOCartesianCentralImpurity" begin
# argument checks
@test_throws ArgumentError HOCartesianCentralImpurity(BoseFS(4, 1=>1); M = 1)
@test_throws ArgumentError HOCartesianCentralImpurity(BoseFS(4, 1=>1); M = 2)
@test_throws ArgumentError HOCartesianCentralImpurity(BoseFS(4, 1=>1); M = 4, ηs = (0.5,))
@test_throws ArgumentError HOCartesianCentralImpurity(BoseFS(4, 1=>1); max_nx = 1)
@test_throws ArgumentError HOCartesianCentralImpurity(BoseFS(4, 1=>1); max_nx = 2)
@test_throws ArgumentError HOCartesianCentralImpurity(BoseFS(4, 1=>1); max_nx = 4, ηs = (0.5,))

N = 1
M = 8
ηs = (2,)
P = prod(x -> M÷x + 1, (1,ηs...))
addr = BoseFS(P, 1 => N)
H = HOCartesianCentralImpurity(addr; M, ηs)
H = HOCartesianCentralImpurity(addr; max_nx = M, ηs)
@test H.aspect == (1.0, float.(ηs)...)

# interaction matrix elements
Expand Down

0 comments on commit 48731ee

Please sign in to comment.