-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently there are some ad-hoc conventions for naming eigenstates of spin operators, such as "Z+", "Z-", "X+", "X-", etc.
We could have a more systematic and general approach, such as:
function (n::StateName"X")(domain)
eigvals, eigvecs = eigen(OpName("X")(domain))
i = findfirst(≈(n.eigval), eigvals)
return eigvecs[:, i]
endObviously that isn't ideal from a performance perspective, but that can serve as a naming convention (i.e. naming eigenvectors of an operator after the operator with the eigenvalue stored as a parameter) as well as a generic fallback definition. Then we can specialize in cases where the eigenvectors have closed forms, and/or we can cache commonly used eigenvectors.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request