On Github berceanu / trento-talk
H=H0+12κ∑m,n[(m−m0)2+(n−n0)2]ˆa†m,nˆam,n
˜H=En(p)+κ2[i∇p+An(p)]2
H0=−J∑m,n(eiϕxm,nˆa†m+1,nˆam,n+eiϕym,nˆa†m,n+1ˆam,n)+h.c.
BW=maxp(E1(p))−minp(E1(p))
ΔE=⟨E2(p)⟩p−⟨E1(p)⟩p
ϵn,β=En+(β+12)κ|Ωn|+δE
δE(p)=κ2∑n′≠n|An,n′(p)|2
ηzpe=4πακ(Eex−ϵ1,0)
i∂tai,j(t)+iγai,j(t)−fi,je−iω0t=[ai,j(t),H]
χβ(p)=N∑je−ipyjae−(px+jal2Ωn)2/2l2ΩnHβ(px/lΩn+jalΩn)
function mandel(z) c = z maxiter = 80 for n = 1:maxiter if abs(z) > 2 return n-1 end z = z^2 + c end return maxiter end
obj.foo(arg1, arg2, ..)
foo(obj, arg1, arg2, ..)
julia> methods(+) # 139 methods for generic function "+": +(x::Bool) at bool.jl:33 +(x::Bool,y::Bool) at bool.jl:36 +(y::FloatingPoint,x::Bool) at bool.jl:46 +(x::Int64,y::Int64) at int.jl:14 +(x::Int8,y::Int8) at int.jl:14 +(x::UInt8,y::UInt8) at int.jl:14 +(x::Int16,y::Int16) at int.jl:14 +(x::UInt16,y::UInt16) at int.jl:14 +(x::Int32,y::Int32) at int.jl:14 +(x::UInt32,y::UInt32) at int.jl:14 +(x::UInt64,y::UInt64) at int.jl:14 +(x::Int128,y::Int128) at int.jl:14
type Wavefunction{T} c::Array{T, 2} x::Array{T, 2} end +{T}(psi1::Wavefunction{T}, psi2::Wavefunction{T}) = Wavefunction{T}(psi1.c + psi2.c, psi1.x + psi2.x) +{T}(psi::Wavefunction{T}, c::Float64) = Wavefunction{T}(psi.c .+ c, psi.x .+ c) *{T}(c::Number, psi::Wavefunction{T}) = Wavefunction{T}(c*psi.c, c*psi.x) /{T}(psi1::Wavefunction{T}, psi2::Wavefunction{T}) = Wavefunction{T}(psi1.c ./ psi2.c, psi1.x ./ psi2.x) import Base.abs abs(psi::Wavefunction{Complex{Float64}}) = Wavefunction{Float64}(abs(psi.c), abs(psi.x)) import Base.maximum function maximum(psi::Wavefunction{Float64}) maxc = maximum(psi.c) maxx = maximum(psi.x) return max(maxc, maxx) end