QuantumProgramItem

class QuantumProgramItem(circuit, chunk_size=None)[source]

Bases: ABC

An item of a QuantumProgram.

Parameters:
  • circuit (QuantumCircuit) – The circuit to be executed.

  • chunk_size (int | None) – The maximum number of bound circuits in each shot loop execution, or None to use a server-side heuristic to optimize speed. When not executing in a session, the server-side heuristic is always used and this value is ignored. ignored.

Attributes

shape

The shape of this item when broadcasted over all arguments.

Methods

size()[source]

The total number elements in this item; the product of the entries of shape.

Return type:

int