diff --git a/Project.toml b/Project.toml index c2f08ac..efeb044 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "OpenQuantumTools" uuid = "e429f160-8886-11e9-20cb-0dbe84e78965" authors = ["Huo Chen "] -version = "0.7.3" +version = "0.7.4" [deps] DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def" diff --git a/src/QSolver/ame_solver.jl b/src/QSolver/ame_solver.jl index 695be91..41ee59c 100644 --- a/src/QSolver/ame_solver.jl +++ b/src/QSolver/ame_solver.jl @@ -128,7 +128,7 @@ function solve_ame( H = w |> Diagonal |> sparse |> Hamiltonian inters = rotate(A.interactions, v) # build gaps for AME - gap_idx = OpenQuantumBase.build_gap_indices(w, digits, sigdigits, cutoff, lvl) + gap_idx = OpenQuantumBase.build_gap_indices(2*π*w, digits, sigdigits, cutoff, lvl) # prepare for the initial state u0 = build_u0(A.u0, :m, vectorize=vectorize) u0 = v' * u0 * v @@ -170,7 +170,7 @@ function build_ensemble_ame( H = w |> Diagonal |> sparse |> Hamiltonian inters = rotate(A.interactions, v) # build gaps for AME - gap_idx = OpenQuantumBase.build_gap_indices(w, digits, sigdigits, cutoff, lvl) + gap_idx = OpenQuantumBase.build_gap_indices(2*π*w, digits, sigdigits, cutoff, lvl) # prepare for the initial state u0 = build_u0(A.u0, :v) u0 = v' * u0