Skip to main content
IBM Quantum Platform
翻訳情報

このページの追加言語翻訳は近日公開予定です。

CircuitItem

class CircuitItem(circuit, *, circuit_arguments=None, chunk_size=None)

Bases: QuantumProgramItem

An item of a QuantumProgram containing a circuit and its arguments.

Parameters

  • circuit (QuantumCircuit) – The circuit to be executed.
  • circuit_arguments (ndarray | None) – A real-valued array of parameter values for the circuit. The last axis is intrinsic with size equal to the number of circuit parameters. Leading axes are extrinsic and define the sweep grid. For example, shape (5, 3, n) means 5×3=15 configurations for a circuit with n parameters.
  • 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.

Attributes

shape

The extrinsic shape of this item, i.e. the broadcasted extrinsic shapes of all inputs.


Methods

size

size()

Return the total number elements in this item.

The size is calculated as the product of the entries of shape.

Return type

int

このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。