# new_x_concatenated_sequence

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

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

Creates the $X$-concatenated sequence.

### Parameters
* **duration** (*float*) – The total duration of the sequence $\tau$ (in seconds).
* **concatenation_order** (*int*) – The number of concatenation of base sequence.
* **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 $X$-concatenated sequence.
### Return type
[DynamicDecouplingSequence](https://docs.q-ctrl.com/references/qctrl-open-controls/qctrlopencontrols/DynamicDecouplingSequence.md#qctrlopencontrols.DynamicDecouplingSequence)

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

## Notes

The $X$-concatenated sequence <sup>[1](#id2)</sup> is constructed by recursively concatenating
control sequence structures. It’s parameterized by the concatenation order $l$ and
the duration of the total sequence $\tau$. Let the $l$-th order of concatenation
be denoted as $C_l(\tau)$. In this scheme, zeroth order concatenation of duration
$\tau$ is defined as free evolution over a period of $\tau$. Using the notation
${\mathcal 1}(\tau)$ to represent free evolution over duration $\tau$, the
the base sequence is:

$$
C_0(\tau) = {\mathcal 1}(\tau) \;.
$$

The $l$-th order $X$-concatenated sequence can be recursively defined as

$$
C_l(\tau) = C_{l - 1}(\tau / 2) X_{\pi} C_{l - 1}(\tau / 2) X_{\pi} \;.
$$

## References

* <a id='id2'>**[1]**</a> [K. Khodjasteh and D. A. Lidar, Physical Review Letters 95, 180501 (2005).](https://doi.org/10.1103/PhysRevLett.95.180501)
