# new_corpse_control

Source: https://docs.q-ctrl.com/references/qctrl-open-controls/qctrlopencontrols/new_corpse_control

```python
qctrlopencontrols.new_corpse_control(rabi_rotation, maximum_rabi_rate, azimuthal_angle=0.0, name=None)
```

Creates a compensating for off-resonance with a pulse sequence (CORPSE) driven control.

CORPSE driven controls are robust to low-frequency dephasing noise.

### Parameters
* **rabi_rotation** (*float*) – The total Rabi rotation $\theta$ to be performed by the driven control.
* **maximum_rabi_rate** (*float*) – The maximum Rabi frequency $\Omega_{\mathrm max}$ for the driven control.
* **azimuthal_angle** (*float* *,* *optional*) – The azimuthal angle $\phi$ for the rotation. Defaults to 0.
* **name** (*str* *,* *optional*) – An optional string to name the control. Defaults to `None`.
### Returns
The driven control $\{(\delta t_n, \Omega_n, \phi_n, \Delta_n)\}$.
### Return type
[DrivenControl](https://docs.q-ctrl.com/references/qctrl-open-controls/qctrlopencontrols/DrivenControl.md#qctrlopencontrols.DrivenControl)

## Notes

A CORPSE driven control <sup>[1](#id3)</sup> <sup>[2](#id4)</sup> consists of three control segments:

|||||
|---------------------------------|------------------------|-------------|---------------|
| $\\delta t_n$                   | $\\Omega_n$            | $\\phi_n$   | $\\Delta_n$   |
| $\theta_1/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi$      | $0$           |
| $\theta_2/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\pi$  | $0$           |
| $\theta_3/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi$      | $0$           |

where

$$
\begin{align}
\theta_1 &= 2\pi + \frac{\theta}{2} - \sin^{-1} \left[ \frac{\sin(\theta/2)}{2}\right] \\
\theta_2 &= 2\pi - 2\sin^{-1} \left[ \frac{\sin(\theta/2)}{2}\right] \\
\theta_3 &= \frac{\theta}{2} - \sin^{-1} \left[ \frac{\sin(\theta/2)}{2}\right]
\end{align}
$$

## References

* <a id='id3'>**[1]**</a> [H. K. Cummins and J. A. Jones, New Journal of Physics 2 (2000).](https://doi.org/10.1088/1367-2630/2/1/006)
* <a id='id4'>**[2]**</a> [H. K. Cummins, G. Llewellyn, and J. A. Jones, Physical Review A 67, 042308 (2003).](https://doi.org/10.1103/PhysRevA.67.042308)
