-
Notifications
You must be signed in to change notification settings - Fork 210
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
Ill-defined behavior of stack when using odd num_spin_orbitals
#820
Comments
This was a design flaw of the
Once all of the above is done, all of the existing classes in |
num_spin_orbitals
This issue is actually more general with respect to the usage of odd values for |
* refactor: replace Property base class with Protocols - removes the Property base class and its legacy HDF5 integration - adds the new SparseLabelOpFactory Protocol in its place - actually makes use of the Interpretable Protocol * refactor: migrate Property attributes onto ElectronicStructureProblem * refactor: update InitialPoint attribute naming * refactor: switch to use num_spatial_orbitals everywhere Closes qiskit-community#820 * Docs and other improvements * refactor: align signatures of ansatzes and initial_states * refactor: migrate ElectronicBasis to problems module * Updates after code review
What is the expected enhancement?
AngularMomentum is currently initialized by specifying the number of spin orbitals. This is confusing because it doesn't make sense to have an odd number of spin orbitals, and passing an odd number seems to give the same operator as the next lowest even number:
I think it should take the number of spatial orbitals as input instead.
The text was updated successfully, but these errors were encountered: