Skip to main content
IBM Quantum Platform

ChunkPart

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

GitHub

Bases: object

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

Attributes Summary

Column 1
Column 2
idx_itemThe index of an item in a quantum program.
sizeThe number of elements from the quantum program item that were executed.

Attributes Documentation

idx_item

Type: int

Default value: <dataclasses._MISSING_TYPE object>

The index of an item in a quantum program.

size

Type: 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.

Was this page helpful?
Report a bug, typo, or request content on GitHub.