IonSim should give better error messages when vibrational modes are given in a different order #21
Labels
needs-brainstorm
Further information is requested
Projects
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: