> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.conductorquantum.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.conductorquantum.com/_mcp/server.

# stanza.drivers.utils



## Module Contents

### Functions

| Name | Description |
|------|-------------|
| [`wait_until_job_is_paused`](#stanzadriversutilswait_until_job_is_paused) | Waits until the OPX FPGA reaches a "pause" statement. |
| [`demod2volts`](#stanzadriversutilsdemod2volts) | Converts the demodulated data to volts. |

### API

```python
stanza.drivers.utils.wait_until_job_is_paused(
    job: qm.jobs.running_qm_job.RunningQmJob,
    timeout: int = 30,
    strict_timeout: bool = True
) -> bool
```

Waits until the OPX FPGA reaches a "pause" statement.

Used when the OPX sequence needs to be synchronized with an external parameter sweep and to ensure that the OPX
sequence is done before proceeding to the next iteration of the external loop, or when using IO variables:

**Parameters:**

<ParamField path="timeout" type="int" default="30">
  Duration in seconds after which the console will be freed even if the pause statement has not been
</ParamField>

<ParamField path="strict_timeout" type="bool" default="True">
  Will throw and exception is set to True, otherwise it will just a print a warning.
</ParamField>

**Returns:**

True when the pause statement has been reached.


```python
stanza.drivers.utils.demod2volts(
    data: float | numpy.ndarray,
    duration: float | int,
    single_demod: bool = False
) -> float | numpy.ndarray
```

Converts the demodulated data to volts.

**Parameters:**

<ParamField path="data" type="float | numpy.ndarray">
  demodulated data. Must be a python variable or array.
</ParamField>

<ParamField path="duration" type="float | int">
  demodulation duration in ns. **WARNING**: this must be the duration of one slice in
</ParamField>

<ParamField path="single_demod" type="bool" default="False">
  Flag to add the additional factor of 2 needed for single demod.
</ParamField>

**Returns:**

The demodulated data in volts.