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

# ChunkPart

*class* `samplomatic.quantum_program.ChunkPart(idx_item: int, size: int)`

[GitHub](https://github.com/Qiskit/samplomatic/tree/main/samplomatic/quantum_program/quantum_program_result.py#L28-L40)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

A description of the contents of a single part of an execution chunk.

**Attributes Summary**

|                                                                                                                |                                                                          |
| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [`idx_item`](#samplomatic.quantum_program.ChunkPart.idx_item "samplomatic.quantum_program.ChunkPart.idx_item") | The index of an item in a quantum program.                               |
| [`size`](#samplomatic.quantum_program.ChunkPart.size "samplomatic.quantum_program.ChunkPart.size")             | The number of elements from the quantum program item that were executed. |

**Attributes Documentation**

### idx\_item

Type: [`int`](https://docs.python.org/3/builtins/functions.html#int)

Default value: `<dataclasses._MISSING_TYPE object>`

The index of an item in a quantum program.

### size

Type: [`int`](https://docs.python.org/3/builtins/functions.html#int)

Default value: `<dataclasses._MISSING_TYPE object>`

The number of elements from the quantum program item that were executed.

For example, if a quantum program item has shape `(10, 5)`, then it has a total of `50` elements, so that if this `size` is `10`, it constitutes 20% of the total work for the item.
