# Drive

Source: https://docs.q-ctrl.com/references/boulder-opal/boulderopal/ions/Drive

```python
class boulderopal.ions.Drive(values, addressing)
```

A piecewise-constant complex-valued drive.

### Parameters
* **values** (*np.ndarray*) – The values of the drive at each segment, in units of rad/s.
* **addressing** (*int* *or* *tuple* *[* *int* *,*  *...* *]*) – The indices of the ions addressed by the drive.

### SEE ALSO
[`boulderopal.ions.OptimizableDrive`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/ions/OptimizableDrive.md#boulderopal.ions.OptimizableDrive)
: Abstract class describing a piecewise-constant optimizable drive.

[`boulderopal.ions.ms_simulate`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/ions/ms_simulate.md#boulderopal.ions.ms_simulate)
: Simulate a Mølmer–Sørensen-type operation on a trapped ions system.
