mirror of
https://github.com/vale981/Looping.jl
synced 2025-03-04 08:51:39 -05:00
omre doc fixes
This commit is contained in:
parent
1deba1ce10
commit
f0e20e9758
6 changed files with 16 additions and 49 deletions
|
@ -4,4 +4,4 @@ using Documenter, Looping
|
|||
DocMeta.setdocmeta!(Looping.Utilities, :DocTestSetup, :(using Looping.Utilities); recursive=true)
|
||||
DocMeta.setdocmeta!(Looping.FloquetUtils, :DocTestSetup, :(using Looping.FloquetUtils); recursive=true)
|
||||
|
||||
makedocs(sitename="Looping Documentation", modules=map(eval, modules), draft=false, strict=:doctest)
|
||||
makedocs(sitename="Looping Documentation", modules=[Looping.Utilities, Looping.FloquetUtils], draft=false, strict=:doctest)
|
||||
|
|
|
@ -2,10 +2,3 @@
|
|||
|
||||
Some numerical tools and experiments for the fiber loop reservoir
|
||||
engineering project.
|
||||
|
||||
|
||||
|
||||
```@contents
|
||||
Pages = ["modules/Utilities.md" "modules/FloquetUtilities.md"]
|
||||
Depth = 3
|
||||
```
|
||||
|
|
|
@ -1,19 +1,5 @@
|
|||
# Floquet Utilities
|
||||
|
||||
```@docs
|
||||
Looping.FloquetUtils
|
||||
```
|
||||
|
||||
|
||||
```@meta
|
||||
CurrentModule = Looping.FloquetUtils
|
||||
```
|
||||
|
||||
|
||||
|
||||
```@docs
|
||||
time_evolution_op
|
||||
floquet_hamiltonian
|
||||
trivial_floquet_hamiltonian
|
||||
KickOperator
|
||||
```@autodocs
|
||||
Modules = [Looping.FloquetUtils]
|
||||
```
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
# Utilities
|
||||
|
||||
```@docs
|
||||
Looping.Utilities
|
||||
```
|
||||
|
||||
|
||||
```@meta
|
||||
CurrentModule = Looping.Utilities
|
||||
```
|
||||
|
||||
|
||||
|
||||
```@docs
|
||||
periodic_distance
|
||||
restrict_to_range
|
||||
```@autodocs
|
||||
Modules = [Looping.Utilities]
|
||||
```
|
||||
|
|
|
@ -19,7 +19,7 @@ using ..Utilities
|
|||
|
||||
Calculate the time evolution operator for a Hamiltonian `H` up to a
|
||||
total time `T`. The rest arguments are passed on to
|
||||
`DifferentialEquations.solve`.
|
||||
[`de.solve`](@ref).
|
||||
"""
|
||||
function time_evolution_op(H::Function, T::Real, args...; kwargs...)
|
||||
function u_step!(dU, U, _, t)
|
||||
|
@ -52,7 +52,7 @@ end
|
|||
|
||||
Returns the Floquet Hamiltonian given a Hamiltionian `H` and a time
|
||||
`T`. The rest arguments are passed on to
|
||||
[`DifferentialEquations.solve`](@ref).
|
||||
[`de.solve`](@ref).
|
||||
"""
|
||||
function floquet_hamiltonian(H::Function, T::Real, args...; kwargs...)
|
||||
U = time_evolution_op(H, T, args...; kwargs...)
|
||||
|
@ -93,12 +93,12 @@ struct KickOperator
|
|||
H_F::Matrix
|
||||
|
||||
|
||||
"""
|
||||
KickOperator(U(t), H_F)
|
||||
"""
|
||||
KickOperator(U(t), H_F)
|
||||
|
||||
Return the Kick operator Given the time evolution operator `U(t)` and the Floquet Hamiltonian
|
||||
`H_F`.
|
||||
"""
|
||||
Return the Kick operator Given the time evolution operator `U(t)` and the Floquet Hamiltonian
|
||||
`H_F`.
|
||||
"""
|
||||
function KickOperator(U, H_F::Matrix)
|
||||
if size(U(0)) != size(H_F)
|
||||
throw(DimensionMismatch("`U` and `H_F` should have the same dimension."))
|
||||
|
@ -107,7 +107,11 @@ struct KickOperator
|
|||
end
|
||||
end
|
||||
|
||||
"""
|
||||
KickOperator(H(t), T)
|
||||
|
||||
Return the Kick operator Given the Hamiltonian `H(t)` and the total time ``T``.
|
||||
"""
|
||||
function KickOperator(H::Function, T::Real)
|
||||
U = time_evolution_op(H, T)
|
||||
H_F = floquet_hamiltonian(U(T), T)
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
module Looping
|
||||
export hi
|
||||
|
||||
hi() = print("hi")
|
||||
|
||||
include("Utilities.jl")
|
||||
include("FloquetUtils.jl")
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue