ChunkPart

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

Bases: object

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

Attributes Summary

idx_item

The index of an item in a quantum program.

size

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

Attributes Documentation

idx_item: int = <dataclasses._MISSING_TYPE object>

The index of an item in a quantum program.

size: int = <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.