Actions24
- Account Actions
- Backend Actions
- Circuit Actions
- Job Actions
- Session Actions
Circuit → Build
AI-generatedSummary
Builds an OpenQASM 3 circuit from a register size and an ordered list of gates, for use by later IBM Quantum operations. Optionally declares symbolic angle inputs that can be bound when submitting the circuit to a Sampler or Estimator.
Inputs
- Number of Qubits (required) — Size of the quantum register; must be at least 1.
- Number of Classical Bits — Size of the classical register used for measurements; defaults to 2.
- Circuit Parameters — Comma-separated symbolic angle names, such as
theta,phi. Each is declared as an input float[64] for binding at submit time. Leave empty for a fixed circuit. - Gates — Ordered list of gate instructions to append. Each gate takes comma-separated qubit indices; controlled gates list the control first and target last. Leave Qubits empty only for a barrier spanning the full register. Parameterized gates accept comma-separated angles in radians or declared parameter names; the U gate requires three angles. Measure can specify a classical bit, and Delay requires a duration such as
100nsor160dt. Identity is accepted but emits no instruction. Gate availability and transpilation requirements depend on the selected gate and IBM hardware.
Output shape
a single item containing the generated OpenQASM 3 circuit and circuit metadata
The emitted instruction count excludes Identity gates, which are dropped.