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

Hamiltonian set to collinear does not work #8

Open
mec07 opened this issue Nov 24, 2018 · 6 comments
Open

Hamiltonian set to collinear does not work #8

mec07 opened this issue Nov 24, 2018 · 6 comments

Comments

@mec07
Copy link
Owner

mec07 commented Nov 24, 2018

There is a problem when we try to use the collinear Hamiltonian. The error is that it cannot find an appropriate model.

This means that we need to decide on the appropriate model (probably TBexp.py).

I'm also a little confused about why we are adding in noncollinear des terms (what is des?) to the collinear Fock matrix in pylato/hamiltonian.py. I think @mb4512 wrote this originally, do you recall, Max?

@horsfielda
Copy link
Collaborator

horsfielda commented Nov 24, 2018 via email

@mec07
Copy link
Owner Author

mec07 commented Nov 24, 2018

Ahhh it turns out that I was getting this error because I had:

{
  "model": "TBcanonical",
  "Hamiltonian": "collinear",
...
}

in the JobDef.json. That causes the clash. If I instead put:

{
  "model": "TBhydrocarbons",
  "Hamiltonian": "collinear",
...
}

then it works.

This is really confusing behaviour and needs to be sorted out so that either you get a meaningful error message or it's super clear in the example JobDef.json.

OK, thanks for clarifying what des means. Do you know what it actually stands for? I think that we should rename this variable, what would you call it, @horsfielda ?

@horsfielda
Copy link
Collaborator

horsfielda commented Nov 24, 2018 via email

@mec07
Copy link
Owner Author

mec07 commented Nov 24, 2018

Right, I see.

For python we need to move to snake case for variable names (if we want to be able to take advantage of static analysis tools), so let's call it onsite_shift_spin.

Thanks! :)

@mec07
Copy link
Owner Author

mec07 commented Nov 24, 2018

hmm... actually how about: spin_onsite_energy_shift? That's slightly clearer

@horsfielda
Copy link
Collaborator

horsfielda commented Nov 24, 2018 via email

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

2 participants