# boulderopalscaleup.routines.TransmonDiscovery

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

```python
class boulderopalscaleup.routines.TransmonDiscovery(*, transmon=None, spectroscopy_waveform=None, spectroscopy_shots=400, frequencies=None, force_rerun=False, calibrate_reset=False, update_fidelity_threshold=None)
```

Parameters for running a transmon discovery routine.

### Variables
* **transmon** (*str* *or* *list* *[* *str* *] or* *None* *,* *optional*) – The references for the transmons to target.
  If not provided, the routine will target all transmons in the device.
* **spectroscopy_waveform** ([*ConstantWaveform*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/ConstantWaveform.md#boulderopalscaleup.common.ConstantWaveform) *or* *list* *[*[*ConstantWaveform*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/ConstantWaveform.md#boulderopalscaleup.common.ConstantWaveform) *] or* *None* *,* *optional*) – The drive pulse used during transmon spectroscopy and transmon anharmonicity.
  If a single pulse is provided, it will be used for all transmons.
  If a list is provided, it must have the same length as `transmon`.
  If not provided, defaults to a constant waveform with amplitude 0.01
  and duration 40,000 ns for each transmon.
* **spectroscopy_shots** (*int*) – The number of shots to use during transmon spectroscopy and transmon anharmonicity.
  Defaults to 400.
* **frequencies** ([*CWSIterable*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/CWSIterable.md#boulderopalscaleup.common.CWSIterable) *or* [*RangeIterable*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/RangeIterable.md#boulderopalscaleup.common.RangeIterable) *or* [*LinspaceIterable*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/LinspaceIterable.md#boulderopalscaleup.common.LinspaceIterable) *or*                   *list* *[*[*CWSIterable*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/CWSIterable.md#boulderopalscaleup.common.CWSIterable) *or* [*RangeIterable*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/RangeIterable.md#boulderopalscaleup.common.RangeIterable) *or* [*LinspaceIterable*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/LinspaceIterable.md#boulderopalscaleup.common.LinspaceIterable) *] or* *None* *,* *optional*) – The frequency sweep range used during transmon spectroscopy.
  If a single iterable is provided, it will be used for all transmons.
  If a list is provided, it must have the same length as `transmon`.
  If not provided, defaults to a sweep centered around each transmon’s frequency.
* **force_rerun** (*bool* *,* *optional*) – Whether to rerun the entire routine regardless of the transmon’s current calibration status.
  Defaults to False.
* **calibrate_reset** (*bool* *,* *optional*) – Whether to calibrate the active reset parameters for each transmon after discovery.
  Defaults to False.
* **update_fidelity_threshold** (*float* *or* *None* *,* *optional*) – Minimum fidelity (inclusive) for readout optimization to update classifiers
  and their readout settings, between 0 and 1. Defaults to None, using each
  saved classifier’s fidelity (or 0 if no classifier is saved). Invalid or skipped
  analysis results still skip updates.
