Skip to content

Commit 8c18a89

Browse files
committed
fix graphene (redo)
1 parent 3aaa3b8 commit 8c18a89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/presets/hamiltonians.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module HamiltonianPresets
66

77
using Quantica, LinearAlgebra
88

9-
function graphene(; a0 = 0.246, range = neighbors(1), t0 = 2.7, β = 3, dim = 2, names = (:A, :B), kw...)
9+
function graphene(; a0 = 0.246, range = neighbors(1), t0 = 2.7, β = 3, dim = 2, type = Float64, names = (:A, :B), kw...)
1010
lat = LatticePresets.honeycomb(; a0, dim, type, names)
1111
h = hamiltonian(lat,
1212
hopping((r, dr) -> t0 * exp(-β*(sqrt(3) * norm(dr)/a0 - 1)) * I, range = range); kw...)
@@ -17,7 +17,7 @@ function twisted_bilayer_graphene(;
1717
twistindex = 1, twistindices = (twistindex, 1), a0 = 0.246,
1818
interlayerdistance = 1.36a0, rangeintralayer = neighbors(1), rangeinterlayer = 4a0/sqrt(3),
1919
hopintra = 2.70 * I, hopinter = 0.48, modelintra = hopping(hopintra, range = rangeintralayer),
20-
names = (:Ab, :Bb, :At, :Bt),
20+
type = Float64, names = (:Ab, :Bb, :At, :Bt),
2121
kw...)
2222

2323
(m, r) = twistindices

0 commit comments

Comments
 (0)