-
Notifications
You must be signed in to change notification settings - Fork 15
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
Orbit and function hierarchy #141
Conversation
…heck discrepancies)
@zhongpc and @qchempku2017 please have a look at this and consider trying to see how it behaves on some test systems when you get a chance. Let me know if you find issues, have suggestions, etc... |
I made a temporary feature branch hierarchy, for convenience in case it makes it easier to test/run the code. I will delete it once we are ok with the fixes. |
I check the new method, it's good. For example, As I reviewed, all the inconsistency comes from this type. The old method applies geometrically correct hierarchy, but in the bit enumeration process, there can by some error. |
Hi Peichen,
True? |
Summary
Implement methods to obtain orbit and correlation function hierarchy. Addresses issue #140
New methods in class
Orbit
:is_sub_orbit
will check if another orbit is a sub orbit of self.sub_orbit_mapping
will return a mapping from the sites in self to a given sub orbit.New methods in class
ClusterSubspace
orbit_hierarchy
will give hierarchy as list of lists of orbit ids.function_hierarchy
will give a hierarchy of correlation functions (same format as above).get_sub_orbits
will return a list of orbits that are sub-orbits of the orbit id given.get_sub_function_ids
will return a list of corr function ids that are sub functions of the corr function for the given id.TODO (if any)
Checklist
Run pycodestyle and flake8
on your local machine.
Run pydocstyle on your code.