supergrad.helper.Spectrum.energy_tensor#
- Spectrum.energy_tensor(greedy_assign=True, enhanced_assign=False, return_enhanced_aux_val=False, **kwargs)[source]#
Return the eigenenergy of quantum system in tensor form.
- Parameters:
greedy_assign (bool) – if True, use greedy assignment mode The greedy assignment mode ignores the issue “same state be assigned multiple times”, due to the weak coupling assumption.
enhanced_assign – use enhanced assignment if ‘spin_projective’, projective the qudit to the spin system, assign states by the overlap versus the computational basis, thus the energy map will be more accurate for the computational basis. if list of SCGraph, assign the states by the Continuum Adjust Coupling Tracking. Dependent assignments will be performed along the SCGraph list. Each assignment compute the overlap between the current state and the previous basis(using the same dimension of Hilbert space) if ndarray, we assume it’s a set of eigenvector in the ndindex order. Ans directly assign the states by computing the overlap versus the eigenvector.
return_enhanced_aux_val (bool) – if True, return the auxiliary energy tensor value along the giving SCGraph list