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

Expose semi-stable API for excitation (eigenmode) viewer #221

Closed
kbarros opened this issue Jan 17, 2024 · 1 comment
Closed

Expose semi-stable API for excitation (eigenmode) viewer #221

kbarros opened this issue Jan 17, 2024 · 1 comment

Comments

@kbarros
Copy link
Member

kbarros commented Jan 17, 2024

A prototype eigenmode viewer is available in SunnyContributed: https://github.com/SunnySuite/SunnyContributed/blob/main/initiatives/Sam-GT/eigenmodes/eigenmode_viewer.jl

It currently depends on some Sunny internals that are subject to change. For example, extracting the net magnetic moment from an SU(N) coherent state will depend on information that is stored inside System. We should investigate whether there is some simple API that could be moved into core Sunny such that eigenmode_viewer.jl can be protected from breaking changes. I am not sure what that API will look like, or if it needs to be exported into the user-facing API. Let's revisit this issue after the entangled units development work has matured.

@kbarros kbarros changed the title Expose public functions for excitation (eigenmode) viewer Expose semi-stable API for excitation (eigenmode) viewer Jan 17, 2024
@kbarros
Copy link
Member Author

kbarros commented Nov 16, 2024

Sunny 0.7 exports the excitations function that provides both eigenvectors and eigenvalues of the dynamical matrix. Interpreting them properly requires accessing the field swt.data.local_unitaries or swt.data.local_rotations for SU(N) and dipole modes, respectively. Although that is an internal field, I think it's likely to be quite stable.

@kbarros kbarros closed this as completed Nov 16, 2024
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