@@ -10,9 +10,9 @@ using QuantumPropagators.Controls: evaluate
1010
1111 N = 10 # size of Hilbert space
1212 ρ = 1.0 # spectral radius
13- Ĥ₀ = random_matrix (N; hermitian= true , spectral_radius= ρ)
14- Ĥ₁ = random_matrix (N; hermitian= true , spectral_radius= ρ)
15- Ĥ₂ = random_matrix (N; hermitian= true , spectral_radius= ρ)
13+ Ĥ₀ = random_matrix (N; hermitian = true , spectral_radius = ρ)
14+ Ĥ₁ = random_matrix (N; hermitian = true , spectral_radius = ρ)
15+ Ĥ₂ = random_matrix (N; hermitian = true , spectral_radius = ρ)
1616 Zero = zeros (ComplexF64, N, N)
1717 ϵ₁ = t -> 1.0
1818 ϵ₂ = t -> 1.0
@@ -43,14 +43,14 @@ using QuantumPropagators.Controls: evaluate
4343 @test abs (H_E_min - G_E_min) < 1e-12
4444 @test abs (H_E_max - G_E_max) < 1e-12
4545
46- G_range_diag = collect (specrange (G̃, method= :diag ))
46+ G_range_diag = collect (specrange (G̃, method = :diag ))
4747 @test eltype (G_range_diag) ≡ Float64
4848 @test norm (G_range_diag - [G_E_min, G_E_max]) < 1e-12
4949
50- H_range_diag = collect (specrange (Ĥ, method= :diag ))
50+ H_range_diag = collect (specrange (Ĥ, method = :diag ))
5151 @test norm (H_range_diag - G_range_diag) < 1e-12
5252
53- G_range_arnoldi = collect (specrange (G̃, method= :arnoldi , m_max= 100 ))
53+ G_range_arnoldi = collect (specrange (G̃, method = :arnoldi , m_max = 100 ))
5454 @test eltype (G_range_arnoldi) ≡ Float64
5555 @test norm (G_range_arnoldi - [H_E_min, H_E_max]) < 1e-2
5656 # `specrange(Ĥ, method=:arnoldi)` isn't very exact, so we don't
6363 N = 100 # size of Hilbert space
6464 ρ = 1.0 # spectral radius
6565 density = 0.1
66- Ĥ₀ = random_matrix (N; hermitian= true , spectral_radius= ρ, density)
67- Ĥ₁ = random_matrix (N; hermitian= true , spectral_radius= ρ, density)
68- Ĥ₂ = random_matrix (N; hermitian= true , spectral_radius= ρ, density)
66+ Ĥ₀ = random_matrix (N; hermitian = true , spectral_radius = ρ, density)
67+ Ĥ₁ = random_matrix (N; hermitian = true , spectral_radius = ρ, density)
68+ Ĥ₂ = random_matrix (N; hermitian = true , spectral_radius = ρ, density)
6969 Zero = zeros (ComplexF64, N, N)
7070 ϵ₁ = t -> 1.0
7171 ϵ₂ = t -> 1.0
9797 @test abs (H_E_min - G_E_min) < 1e-12
9898 @test abs (H_E_max - G_E_max) < 1e-12
9999
100- G_range_diag = collect (specrange (G̃, method= :diag ))
100+ G_range_diag = collect (specrange (G̃, method = :diag ))
101101 @test eltype (G_range_diag) ≡ Float64
102102 @test norm (G_range_diag - [G_E_min, G_E_max]) < 1e-12
103103
104- G_range_arnoldi = collect (specrange (G̃, method= :arnoldi , m_max= 100 ))
104+ G_range_arnoldi = collect (specrange (G̃, method = :arnoldi , m_max = 100 ))
105105 @test eltype (G_range_arnoldi) ≡ Float64
106106 @test norm (G_range_arnoldi - [G_E_min, G_E_max]) < 0.2
107107
0 commit comments