# boulderopalscaleup.routines.OneQubitCalibration

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

```python
class boulderopalscaleup.routines.OneQubitCalibration(*, transmon, gate, repetitions=None, force_rerun=False, duration='default', run_rb=True, run_stark_phase_cal=True, run_coarse_ramsey=True, run_fine_ramsey=True, sweep_margin=1.05)
```

Parameters for running one qubit calibration routine.

### Variables
* **transmon** (*str*) – The reference for the transmon to target.
* **gate** ( *"sx"* *or*  *"x"*) – The gate to calibrate.
* **repetitions** (*list* *[* *int* *] or* *None* *,* *optional*) – List of repetition counts for the calibration experiment.
  If not provided, a set of repetitions will be chosen based on the gate.
* **force_rerun** (*bool* *,* *optional*) – Whether to rerun the entire routine regardless transmon’s current calibration status.
  Defaults to False.
* **duration** ([*Duration*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/Duration.md#boulderopalscaleup.common.Duration) *or*  *"optimize"* *or*  *"default"* *,* *optional*) – Duration for the drive waveform.
  If a `Duration` is provided, the routine starts with a Power Rabi
  experiment using a DragCosineWaveform with this exact duration (no
  further duration optimization is performed).
  `"optimize"` lets the routine pick an initial duration based on the defcal and then
  attempt to shorten it after a successful Power Rabi, based on the
  estimated minimum pulse duration.
  `"default"` lets the routine inherit an initial duration without
  attempting any subsequent optimization.
  Defaults to `"default"`.
* **run_rb** (*bool* *,* *optional*) – Whether to run a one-qubit randomized benchmarking experiment at the end
  of the calibration routine. Defaults to True.
* **run_stark_phase_cal** (*bool* *,* *optional*) – Whether to run the Stark phase calibration step. Automatically skipped
  when the drive waveform duration is 32 ns or above. Defaults to True.
* **run_coarse_ramsey** (*bool* *,* *optional*) – Whether to run the initial coarse frequency Ramsey step. When `False`,
  the routine skips the initial coarse Ramsey, allowing
  experiments to run on an already well-calibrated frequency. Defaults to True.
* **run_fine_ramsey** (*bool* *,* *optional*) – Whether to run the fine frequency Ramsey step. Defaults to True.
* **sweep_margin** (*float* *,* *optional*) – Multiplicative margin applied to the estimated amplitude when computing
  the Power Rabi sweep range. Defaults to 1.05.
