Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong bands connection #303

Open
pablosanjose opened this issue Jul 19, 2024 · 3 comments
Open

Wrong bands connection #303

pablosanjose opened this issue Jul 19, 2024 · 3 comments

Comments

@pablosanjose
Copy link
Owner

This code produces a completely wrong band connection pattern

using Quantica
using GLMakie

function build()
    lat = LP.triangular()
    σ1 = SA[0 0 0 0; 1 0 0 0; 0 0 0 0; 0 0 1 0]
    τz = SA[1 0 0 0; 1 0 0 0; 0 0 -1 0; 0 0 0 -1]
    model = onsite(σ1+σ1'+7τz) + hopping((r, dr) -> dr[2] == 0 ? zero(σ1) : dr[1] > 0 ? σ1 : σ1')
    h = lat |> hamiltonian(model; orbitals = 4)
    return h
end

 h = build()

 qplot(h)

 qplot(bands(h, range(0, 2π, 1+18*3), range(0, 2π, 1+18*3)))

Screenshot 2024-07-19 at 09 53 09

@pablosanjose
Copy link
Owner Author

The reason is that h is non-hermitian. Closing, as this case is not intended to work with band connection

@pablosanjose
Copy link
Owner Author

There is still an issue. If we make this Hermitian, the Dirac points fail to be properly connected

function build()
    lat = LP.triangular()
    σ1 = SA[0 0; 1 0]
    model = onsite(σ1+σ1') + hopping((r, dr) -> dr[2] == 0 ? zero(σ1) : dr[1] > 0 ? σ1 : σ1')
    h = lat |> hamiltonian(model; orbitals = 2)
    return h
end

Screenshot 2024-07-19 at 10 07 10

Note that the conventional graphene case (which would read model = onsite(σ1+σ1') + hopping((r, dr) -> dr[2] == 0 ? zero(σ1) : dr[2] > 0 ? σ1 : σ1')) is properly connected

Screenshot 2024-07-19 at 10 09 02

@pablosanjose
Copy link
Owner Author

An equivalent one-liner: HP.graphene() |> supercell(1, -1) |> bands(range(0, 2π, 19), range(0, 2π, 19)) |> qplot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant