@@ -24,3 +24,36 @@ using Plots
24
24
result = get_steady_states (problem, TotalDegree ())
25
25
@test sum (any .(get_class (result, " stable" ))) == 3
26
26
end
27
+
28
+ @testset " work with rnumbers and cumber" begin
29
+ @testset " @cnumbers" begin
30
+ h = FockSpace (:cavity )
31
+ @qnumbers a:: Destroy (h)
32
+ @cnumbers Δ U G κ
33
+ param = [Δ, U, G, κ]
34
+
35
+ H_RWA = - Δ * a' * a + U * (a' ^ 2 * a^ 2 ) / 2 - G * (a' * a' + a * a) / 2
36
+ ops = [a, a' ]
37
+
38
+ eqs = meanfield (ops, H_RWA, [a]; rates= [κ], order= 1 )
39
+
40
+ fixed = (U => 0.001 , κ => 0.002 )
41
+ varied = (Δ => range (- 0.03 , 0.03 , 50 ), G => range (1e-5 , 0.02 , 50 ))
42
+ problem_c1 = HarmonicBalance. Problem (complete (eqs), param, varied, fixed)
43
+ end
44
+ @testset " @rnumbers" begin
45
+ h = FockSpace (:cavity )
46
+ @qnumbers a:: Destroy (h)
47
+ @rnumbers Δ U G κ
48
+ param = [Δ, U, G, κ]
49
+
50
+ H_RWA = - Δ * a' * a + U * (a' ^ 2 * a^ 2 ) / 2 - G * (a' * a' + a * a) / 2
51
+ ops = [a, a' ]
52
+
53
+ eqs = meanfield (ops, H_RWA, [a]; rates= [κ], order= 1 )
54
+
55
+ fixed = (U => 0.001 , κ => 0.002 )
56
+ varied = (Δ => range (- 0.03 , 0.03 , 50 ), G => range (1e-5 , 0.02 , 50 ))
57
+ problem_c1 = HarmonicBalance. Problem (complete (eqs), param, varied, fixed)
58
+ end
59
+ end
0 commit comments