---
title: annotations (latest version)
description: API reference for samplomatic.annotations in the latest version of samplomatic
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/samplomatic/annotations
---

# samplomatic.annotations

## Classes

|                                                                                                                                                                 |                                                                            |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [`ChangeBasisMode`](/docs/api/samplomatic/auto/annotations-change-basis-mode "samplomatic.annotations.ChangeBasisMode")(value)                                  | Whether to add basis change gates to prepare or measure a given basis.     |
| [`DecompositionMode`](/docs/api/samplomatic/auto/annotations-decomposition-mode "samplomatic.annotations.DecompositionMode")(value)                             | How to decompose arbitrary single-qubit gates.                             |
| [`DressingMode`](/docs/api/samplomatic/auto/annotations-dressing-mode "samplomatic.annotations.DressingMode")(value)                                            | Which side of a box to anchor the dressing gates to.                       |
| [`GroupMode`](/docs/api/samplomatic/auto/annotations-group-mode "samplomatic.annotations.GroupMode")(value)                                                     | Which set of gates and distribution to sample with.                        |
| [`InjectLocalClifford`](/docs/api/samplomatic/auto/annotations-inject-local-clifford "samplomatic.annotations.InjectLocalClifford")(ref\[, decomposition, ...]) | Directive to inject local Cliffords.                                       |
| [`InjectionSite`](/docs/api/samplomatic/auto/annotations-injection-site "samplomatic.annotations.InjectionSite")(value)                                         | Whether to inject noise before or after the hard content of a dressed box. |

## Promoted Members

Members of this module that were promoted to the namespace of the parent module.

|                                                                                                                            |                                                            |
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [`samplomatic.ChangeBasis`](/docs/api/samplomatic/auto/change-basis "samplomatic.ChangeBasis")(\[decomposition, ...])      | Directive to add basis changing gates.                     |
| [`samplomatic.InjectNoise`](/docs/api/samplomatic/auto/inject-noise "samplomatic.InjectNoise")(ref\[, modifier\_ref, ...]) | Directive to inject noise into a `box` instruction.        |
| [`samplomatic.Tag`](/docs/api/samplomatic/auto/tag "samplomatic.Tag")(\[ref])                                              | Annotation to tag and instruction with a string reference. |
| [`samplomatic.Twirl`](/docs/api/samplomatic/auto/twirl "samplomatic.Twirl")(\[group, dressing, ...])                       | Directive to twirl the contents of a `box` instruction.    |
