rydiqule.sensor_utils.make_real¶
- rydiqule.sensor_utils.make_real(equations: ndarray, constant: ndarray, ground_removed: bool = True) Tuple[ndarray, ndarray] [source]¶
Converts equations of motion from complex basis to real basis.
Changes the density vector equation for p_ij into the Re[p_ij] equation and changing the density vector equation for p_ji into the equation for Im[p_ij].
- Parameters:
equations (numpy.ndarray) – Complex equations of motion.
constant (numpy.ndarray) – RHS of the equations of motion.
ground_removed (bool, optional) – Indicates if
equations
has had the ground state removed. Default isTrue
.
- Returns:
real_eqns (numpy.ndarray) – EOMs in real basis.
real_const (numpy.ndarray) – RHS of EOMs in real basis.