question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Berry flux over BZ

See original GitHub issue

This is not much code related but it would serve as a nice example.

I’m trying to compute the Chern number for the Haldane model using the new feature that computes the berry flux and berry phase.

I’m setting up the model as:

graphene = sisl.geom.graphene(0.5774)
H = Hamiltonian(graphene,dtype=np.complex128)

delta=-0.2
t=-1.0
t2 =0.15*np.exp((1.j)*np.pi/2.)
t2c=t2.conjugate()

r = (0.1,  0.6)
t = (-delta , t )
H.construct([r, t])

H[1,1] = delta

H[0,0,(1,0)] = t2
H[1,1,(1,-1)] = t2
H[1,1,(0,1)] = t2
H[1,1,(1,0)] = t2c
H[0,0,(1,-1)] = t2c
H[0,0,(0,1)] = t2c

The bandstructure seems ok:

band = BandStructure(H, [[0.,0.],[2./3.,1./3.],[.5,0.5],[1./3.,2./3.], [0.,0.]], 400, [r'$\Gamma $',r'$K$', r'$M$', r'$K^\prime$', r'$\Gamma $'])

bs = band.asarray().eigh()

lk, kt, kl = band.lineark(True)
plt.xticks(kt, kl)
plt.xlim(0, lk[-1])
plt.ylim([-2.5, 2.5])
plt.ylabel(r'$E-\epsilon_F$ (eV)')
for bk in bs.T:
    plt.plot(lk, bk)

Now, for the berry flux, I’m doing:

nk = 24
kpts = np.linspace(-0.5,.5,nk,endpoint=False)

flux_lower_xy = np.zeros((len(kpts),len(kpts)))
for ki in range(len(kpts)):
    for kj in range(len(kpts)):
        origo = [kpts[ki], kpts[kj], 0.]
        flux_lower_xy[ki,kj] = H.eigenstate(k=origo).berry_flux()[0][0,1]

were the first index selects the lower band, and the last two the xy element.

And integrating it like:

simps([simps(flux_lower_xy[ki,:],kpts) for ki in range(len(kpts))],kpts)/(2*np.pi)

which should result in an integer. I’m obtaining something around 0.02 .

The model setup is ok ? And the berry flux part ?

Hoppings and berry flux/berry phase may be found here

Also, is there some way to open the boundary conditions (BC) of a periodic model (similar to the cut_piece of pythTB)?

Thanks in advance, any help is appreciated.

Version details 3.7.4 (default, Aug 13 2019, 20:35:49) [GCC 7.3.0] 0.9.8 13a327bd8e27d689f119bafdf38519bab7f6e0f6

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bfocassiocommented, Apr 7, 2020

I don’t mind at all. And thank you again

1reaction
zerothicommented, Apr 7, 2020

@bfocassio I am going to re-open.

Then I will remember to make a small tutorial about (if you don’t mind me using your supplied codes?)

😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Calculated flux b z (corresponds to Berry curvature Ω z ) distribution ...
Based on the tight-binding Hamiltonian, the AHC and the Berry curvature were evaluated via the Kubo-formula [36] approach in the linear response scheme...
Read more >
3 Berry phases and curvatures - IISC Physics
As indicated above, a Berry phase is a quantity that describes how a global ... Berry curvature vanishes everywhere in the BZ for...
Read more >
The flow of the Berry curvature vector field - Nature
The 2D flow is generally weaker as the entire flux is now spread over a surface. 0D flow: Last, the well-known Berry curvature...
Read more >
Lecture notes on Berry phases and topology - SciPost
The main focus is on Berry phases in the band theory of solids, ... k is the crystal momentum belonging to the first...
Read more >
Physical Interpretation of Relationship Between Hall ...
The formula follows from the Kubo formula of conductivity (based on the linear ... by another pair of variables and the total Berry...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found