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

Ladder operator class #4

Open
gharib85 opened this issue Mar 6, 2022 · 1 comment
Open

Ladder operator class #4

gharib85 opened this issue Mar 6, 2022 · 1 comment

Comments

@gharib85
Copy link

gharib85 commented Mar 6, 2022

Has default value bigger than selected on for define other operator
Why ....
I tested it and doesn't give any further modifications for truncated hilbert space

@peterarose
Copy link
Owner

If I understand your question correctly, you're wondering why I specify a calculation_size that is larger than the desired size of the operators. The reason is that the ladder operators are (in principle) infinite in size, and we have to truncate them to work with them numerically. The truncation always leads to errors, but we can reduce the number of errors by defining x using a slightly larger size. That way, when we calculate things like x^2, x^3, etc. they are correct for the size that is actually desired. If you set calculation_size = size, and request x^2, the [-1,-1] entry will have an error. You can compare to the same result where calculation_size = size+1.

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