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.

ground energy_square lattice

See original GitHub issue

Hello! I would like to calculate the ground state of free spinless fermions on a square lattice 4x4. Hamiltonian is the same as in [(http://weinbe58.github.io/QuSpin/generated/quspin.basis.spinless_fermion_basis_general.html#quspin.basis.spinless_fermion_basis_general)] but with mu=0 and U=0.

  1. When I write basis_2d=spinless_fermion_basis_general(N_2d, Nf=1, kxblock=(T_x,0),kyblock=(T_y,0),pxblock=(P_x,0),pyblock=(P_y,0))? I got the warning
 GeneralBasisWarning: using non-commuting symmetries can lead to unwanted behaviour of general basis, make sure that quantum numbers are invariant under non-commuting symmetries!
  exec(compile(f.read(), filename, 'exec'), namespace)
  1. when I set the number if fermions Nf=2 I got the error:

ValueError: zero-size array to reduction operation minimum which has no identity

  1. I also tried this one basis_2d=spinless_fermion_basis_general(N_2d,Nf=2)

but the ground energy (E_g) seems to be wrong: I expect (the hopping J=1) E_g =-4 for Nf =1 E_g =-6 for Nf =2 E_g =-8 for Nf =3 E_g =-8 for Nf =4 E_g =-8 for Nf =5 and so on but I got E_g =-10 for Nf =4

PS. Is it possible to delete my previous issue?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
mgbukovcommented, Jan 23, 2019

We were able to reproduce the bug. We’ll try to fix it asap.

1): the warning message tells you that the momentum and parity symmetries do not commute. In general, this is true. However, in the momentum k=0,pi sectors they do commute. The warning is to make the user alert, so they can double check by turning on and off the symmetries.

In principle, if one ignores the warning, the results could be wrong.

“Should I insert kxblock=(T_x,0),kyblock=(T_y,0),pxblock=(P_x,0),pyblock=(P_y,0) for simple square lattice with periodic boundary conditions?”

This depends on your Hamiltonian.

A good review which explains the symmetries is https://arxiv.org/abs/1101.3281

We’ll let you know once the issue has been fixed.

0reactions
mgbukovcommented, Jan 24, 2019

Seems like I was wrong, too. The spinless_fermion_general was fine all along, there is indeed no bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[1005.1508] Compass-Heisenberg Model on the Square Lattice
The macroscopic ground state degeneracy of the compass model is lifted in the thermodynamic limit already by infinitesimal Heisenberg ...
Read more >
Phys. Rev. B 49, 5983 (1994) - Ground-state properties of the ...
Ground -state properties of the spin-1/2 antiferromagnetic Heisenberg model on a square lattice by a Monte Carlo method.
Read more >
Field-enhanced quantum fuctuation in S=1/2 frustrated square lattice ...
An interesting phase diagram with unusual ground states is theoretically predicted as a function of the ratio J2/J1. Furthermore, quantum phases have been ......
Read more >
Minimizing lattice structures for Morse potential energy in two ...
We investigate the local and global optimality of the triangular, square, simple cubic, face-centered-cubic (fcc) and body-centered-cubic (bcc) lattices and ...
Read more >
A lattice-Boltzmann scheme of the Navier–Stokes equation on ...
Abstract. The standard lattice-Boltzmann method (LBM) for fluid flow simulation is based on a square (in 2D) or a cubic (in 3D) lattice....
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