---
title: ChangeBasisMode (latest version)
description: API reference for samplomatic.annotations.ChangeBasisMode in the latest version of samplomatic
source: https://quantum.cloud.ibm.com/docs/en/api/samplomatic/auto/annotations-change-basis-mode
---

# ChangeBasisMode

*class* `samplomatic.annotations.ChangeBasisMode(value)`

[GitHub](https://github.com/Qiskit/samplomatic/tree/main/samplomatic/annotations/change_basis_mode.py#L21-L25)

Bases: [`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Enum`](https://docs.python.org/3/library/enum.html#enum.Enum)

Whether to add basis change gates to prepare or measure a given basis.

**Attributes Summary**

|                                                                                                                 |   |
| --------------------------------------------------------------------------------------------------------------- | - |
| [`MEASURE`](#samplomatic.annotations.ChangeBasisMode.MEASURE "samplomatic.annotations.ChangeBasisMode.MEASURE") |   |
| [`PREPARE`](#samplomatic.annotations.ChangeBasisMode.PREPARE "samplomatic.annotations.ChangeBasisMode.PREPARE") |   |

**Attributes Documentation**

### MEASURE

Default value: `'measure'`

### PREPARE

Default value: `'prepare'`
