# new_corpse_in_scrofulous_control

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

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

Creates a CORPSE concatenated within SCROFULOUS (CORPSE in SCROFULOUS) driven control.

CORPSE in SCROFULOUS driven controls are robust to both low-frequency noise sources that perturb
the amplitude of the control field and low-frequency dephasing noise.

### Parameters
* **rabi_rotation** (*float*) – The total Rabi rotation $\theta$ to be performed by the driven control. Must be either
  $\pi/4$, $\pi/2$, or $\pi$.
* **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)

### SEE ALSO
[`new_corpse_control`](https://docs.q-ctrl.com/references/qctrl-open-controls/qctrlopencontrols/new_corpse_control.md#qctrlopencontrols.new_corpse_control), [`new_scrofulous_control`](https://docs.q-ctrl.com/references/qctrl-open-controls/qctrlopencontrols/new_scrofulous_control.md#qctrlopencontrols.new_scrofulous_control)

## Notes

A CORPSE in SCROFULOUS driven control <sup>[1](#id2)</sup> consists of a SCROFULOUS control with each segment
replaced by a CORPSE control, which yields nine segments:

|||||
|--------------------------------------------|------------------------|-------------------|---------------|
| $\\delta t_n$                              | $\\Omega_n$            | $\\phi_n$         | $\\Delta_n$   |
| $\Gamma^{\theta_1}_1/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_1$     | $0$           |
| $\Gamma^{\theta_1}_2/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_1+\pi$ | $0$           |
| $\Gamma^{\theta_1}_3/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_1$     | $0$           |
| $\Gamma^{\theta_2}_1/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_2$     | $0$           |
| $\Gamma^{\theta_2}_2/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_2+\pi$ | $0$           |
| $\Gamma^{\theta_2}_3/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_2$     | $0$           |
| $\Gamma^{\theta_3}_1/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_3$     | $0$           |
| $\Gamma^{\theta_3}_2/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_3+\pi$ | $0$           |
| $\Gamma^{\theta_3}_3/\Omega_{\mathrm max}$ | $\Omega_{\mathrm max}$ | $\phi+\phi_3$     | $0$           |

where

$$
\begin{align}
\theta_1 &=
\theta_3 = \mathrm{sinc}^{-1} \left[\frac{2\cos (\theta/2)}{\pi}\right] \\
\theta_2 &= \pi \\
\phi_1 &= \phi_3 =
\cos^{-1}\left[ \frac{-\pi\cos(\theta_1)}{2\theta_1\sin(\theta/2)}\right] \\
\phi_2 &= \phi_1 - \cos^{-1} \left(-\frac{\pi}{2\theta_1}\right)
\end{align}
$$

(with $\mathrm{sinc}(x)=\sin(x)/x$ the unnormalized sinc function) are the SCROFULOUS
angles, and

$$
\begin{align}
\Gamma^{\theta'}_1 &=
2\pi + \frac{\theta'}{2} - \sin^{-1} \left[ \frac{\sin(\theta'/2)}{2}\right] \\
\Gamma^{\theta'}_2 &=
2\pi - 2\sin^{-1} \left[ \frac{\sin(\theta'/2)}{2}\right] \\
\Gamma^{\theta'}_3 &= \frac{\theta'}{2} - \sin^{-1} \left[ \frac{\sin(\theta'/2)}{2}\right]
\end{align}
$$

are the CORPSE angles corresponding to each SCROFULOUS angle
$\theta'\in\{\theta_1,\theta_2,\theta_3\}$.

## References

* <a id='id2'>**[1]**</a> [T. Ichikawa, M. Bando, Y. Kondo, and M. Nakahara, Physical Review A 84, 062311 (2011).](https://doi.org/10.1103/PhysRevA.84.062311)
