rydiqule.sensor_utils.remove_ground

rydiqule.sensor_utils.remove_ground(equations: ndarray) Tuple[ndarray, ndarray][source]

Remove the ground state from the equations of motion using population conservation.

Population conservation enforces

\[\rho_{(0,0)} = 1 - \sum_{i=1}^{n-1} \rho_{(i,i)}\]

We use this equation to remove the EOM for rho_00 and enforce population conservation in the steady state.

Parameters:

equations (numpy.ndarray) – array of shape (n^2, n^2) representing the equations of motion of the system, where n is the number of basis states.

Returns:

The modified equations of shape (n^2-1, n^2-1)

Return type:

numpy.ndarray