You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I disagree that IonSim should automatically correct for this. We could improve the error message, like Incompatible basis. Make sure the format is (ion, radial, axial).
marwahaha
changed the title
ordering of vibrational modes in product state matters
IonSim should give better error messages when vibrational modes are given in a different order
Sep 23, 2022
Example:
# Define the initial density matrix
ρ_axial = thermalstate(axial_mode,6)
ρ_radial = thermalstate(radial_mode,6)
ρ_ions = dm(Ca["D-1/2"] ⊗ Ca["S-1/2"])
ρ_initial = ρ_ions ⊗ ρ_axial ⊗ ρ_radial
returns
IonSim: Incompatible basis
without further informationTemporary solution is to reorder the vibrational modes density matrix:
ρ_initial = ρ_ions ⊗ ρ_radial ⊗ ρ_axial # Corrects Incompatible basis
IonSim should be able to check for this issue and properly correct for it if the ordering doesn't matter
The text was updated successfully, but these errors were encountered: