We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aaa3b8 commit 8c18a89Copy full SHA for 8c18a89
src/presets/hamiltonians.jl
@@ -6,7 +6,7 @@ module HamiltonianPresets
6
7
using Quantica, LinearAlgebra
8
9
-function graphene(; a0 = 0.246, range = neighbors(1), t0 = 2.7, β = 3, dim = 2, names = (:A, :B), kw...)
+function graphene(; a0 = 0.246, range = neighbors(1), t0 = 2.7, β = 3, dim = 2, type = Float64, names = (:A, :B), kw...)
10
lat = LatticePresets.honeycomb(; a0, dim, type, names)
11
h = hamiltonian(lat,
12
hopping((r, dr) -> t0 * exp(-β*(sqrt(3) * norm(dr)/a0 - 1)) * I, range = range); kw...)
@@ -17,7 +17,7 @@ function twisted_bilayer_graphene(;
17
twistindex = 1, twistindices = (twistindex, 1), a0 = 0.246,
18
interlayerdistance = 1.36a0, rangeintralayer = neighbors(1), rangeinterlayer = 4a0/sqrt(3),
19
hopintra = 2.70 * I, hopinter = 0.48, modelintra = hopping(hopintra, range = rangeintralayer),
20
- names = (:Ab, :Bb, :At, :Bt),
+ type = Float64, names = (:Ab, :Bb, :At, :Bt),
21
kw...)
22
23
(m, r) = twistindices
0 commit comments