# new_ramsey_sequence

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

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

Creates the Ramsey 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 Ramsey sequence.
### Return type
[DynamicDecouplingSequence](https://docs.q-ctrl.com/references/qctrl-open-controls/qctrlopencontrols/DynamicDecouplingSequence.md#qctrlopencontrols.DynamicDecouplingSequence)

## Notes

Technically, the Ramsey sequence <sup>[1](#id2)</sup> does not decouple the system from the environment.
Nevertheless, it is a useful sequence for characterization and testing protocols
and hence it is included. The sequence is parameterized by the duration $\tau$
and contains no offsets in between the start and the end time of the sequence.

## References

* <a id='id2'>**[1]**</a> [N. F. Ramsey, Physical Review 78, 695 (1950).](https://link.aps.org/doi/10.1103/PhysRev.78.695)
