---
title: InlineBoxes (latest version)
description: API reference for samplomatic.transpiler.passes.InlineBoxes in the latest version of samplomatic
source: https://quantum.cloud.ibm.com/docs/en/api/samplomatic/auto/transpiler-passes-inline-boxes
---

# InlineBoxes

*class* `samplomatic.transpiler.passes.InlineBoxes(*args, **kwargs)`

[GitHub](https://github.com/Qiskit/samplomatic/tree/main/samplomatic/transpiler/passes/inline_boxes.py#L23-L68)

Bases: [`TransformationPass`](/docs/api/qiskit/qiskit.transpiler.TransformationPass)

Inline every box in the input circuit by replacing it with its content.

Every annotation that is present in the boxes is ignored.

**Methods Summary**

|                                                                                                              |                               |
| ------------------------------------------------------------------------------------------------------------ | ----------------------------- |
| [`run`](#samplomatic.transpiler.passes.InlineBoxes.run "samplomatic.transpiler.passes.InlineBoxes.run")(dag) | Run a pass on the DAGCircuit. |

**Methods Documentation**

### run

`run(dag: DAGCircuit) → DAGCircuit`

[GitHub](https://github.com/Qiskit/samplomatic/tree/main/samplomatic/transpiler/passes/inline_boxes.py#L29-L36)

Run a pass on the DAGCircuit. This is implemented by the pass developer.

**Parameters**

**dag** – the dag on which the pass is run.

**Raises**

[**NotImplementedError**](https://docs.python.org/3/builtins/exceptions.html#NotImplementedError) – when this is left unimplemented for a pass.
