# boulderopalscaleup.experiments.AllXY

Source: https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/experiments/AllXY

```python
class boulderopalscaleup.experiments.AllXY(*, transmon, recycle_delay_ns=200000, shot_count=500, preset=None, circuits=None, expected_values=None, use_sx_only=False, measure_waveform=None, update='auto')
```

AllXY experiment class for running the AllXY calibration protocol on a transmon qubit.

This experiment applies a sequence of gate pairs to the specified transmon and measures
the resulting state.
It is commonly used to diagnose and calibrate single-qubit gate errors.

When `circuits` is not provided, the standard 21-element AllXY sequence is used.
You may supply arbitrary low-depth circuits (as lists of gate names) together with
their `expected_values` ($P(|1\rangle)$ for each circuit) to repurpose this experiment
as a general gate-sequence diagnostic.

Alternatively, set `preset="clifford_inverse"` to run all 24 single-qubit
Cliffords each followed by their inverse, verifying that the population returns
to $|0\rangle$.

### Variables
* **transmon** (*str*) – Identifier for the transmon qubit to be calibrated.
* **recycle_delay_ns** (*int*) – Delay time (in ns) between shots to allow the qubit to relax. Default is 200,000 ns.
* **shot_count** (*int*) – Number of measurement shots per circuit. Default is 500.
* **preset** ( *"clifford_inverse"* *or* *None* *,* *optional*) – Predefined circuit set.  When specified, `circuits` and `expected_values` are
  ignored.  `"clifford_inverse"` runs $C_i \cdot C_i^{-1}$ for all 24 Cliffords.
* **circuits** (*list* *[* *list* *[* *str* *]* *]* *,* *optional*) – Each inner list is a sequence of gate names (e.g. [“sx”, “sy”]).
  Defaults to the standard AllXY 21-element sequence.
* **expected_values** (*list* *[* *float* *]* *,* *optional*) – Expected $P(|1\rangle)$ for each circuit.  Must have the same length as `circuits`.
  Defaults to the standard AllXY expectations.
* **use_sx_only** (*bool* *,* *optional*) – When True, expands all `x` and `y` gates into `sx,sx` and `sy,sy`
  pairs and expands `-sx`/`-sy` via `z,sx/sy,z`.  This exercises only
  the sx/sy defcals without relying on x/y calibration.  Default is False.
* **measure_waveform** ([*ConstantWaveform*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/ConstantWaveform.md#boulderopalscaleup.common.ConstantWaveform) *or* *None* *,* *optional*) – The waveform to use for the measurement pulse.
  Defaults to the measurement defcal.
* **update** ( *"auto"* *or*  *"off"* *or*  *"prompt"* *,* *optional*) – How the device should be updated after an experiment run. Defaults to auto.
