# new_spin_echo_sequence

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

```python
qctrlopencontrols.new_spin_echo_sequence(duration, pre_post_rotation=False, name=None)
```

Creates the spin echo sequence.

### Parameters
* **duration** (*float*) – Total duration of the sequence $\tau$ (in seconds).
* **pre_post_rotation** (*bool* *,* *optional*) – If `True`, a $X_{\pi/2}$ rotation is added at the
  start and end of the sequence. Defaults to `False`.
* **name** (*string* *,* *optional*) – Name of the sequence. Defaults to `None`.
### Returns
The spin echo sequence.
### Return type
[DynamicDecouplingSequence](https://docs.q-ctrl.com/references/qctrl-open-controls/qctrlopencontrols/DynamicDecouplingSequence.md#qctrlopencontrols.DynamicDecouplingSequence)

## Notes

The spin echo sequence <sup>[1](#id2)</sup> is parameterized by duration $\tau$. There is a single
$X_{\pi}$ unitary operation at $t_1 = \frac{\tau}{2}$.

## References

* <a id='id2'>**[1]**</a> [E. L. Hahn, Physical Review 80, 580 (1950).](https://link.aps.org/doi/10.1103/PhysRev.80.580)
