---
title: AddNoopsAll (latest version)
description: API reference for samplomatic.transpiler.passes.insert_noops.AddNoopsAll in the latest version of samplomatic
source: https://quantum.cloud.ibm.com/docs/en/api/samplomatic/auto/transpiler-passes-insert-noops-add-noops-all
---

# AddNoopsAll

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

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

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

Expand boxes to all qubits contained in a circuit.

This pass leaves non-box operations as-is, but boxes are modified to span all the qubits as defined when initializing the QuantumCircuit object.

**Methods Summary**

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

**Methods Documentation**

### run

`run(dag: DAGCircuit)`

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

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.
