Circuits

Overview

A quantum circuit is the object you construct and execute on a backend. This page describes the recommended workflow and how to obtain circuits.

For backend selection, see Backends. For execution options (shots, precision, mode), see Run Settings.

Obtaining circuits

Programmatic construction

Construct circuits using QuantumCircuit from QuantumRingsLib. You define the number of qubits (and classical bits, if needed), apply gates, and add measurement operations.

See Quick Start (5 Minutes) and Core SDK Examples for additional examples.

QASM import

You can load circuits from OpenQASM 2.0 (.qasm) files or strings. Details and constraints are described in QASM import.

For downloadable circuit datasets, see Downloadable Circuits.

Common pitfalls

  • Unsupported operations — If your circuit uses operations not supported by the SDK or by the OpenQASM import path, import or execution may fail. See Supported gates.

  • Execution before backend selection — Always acquire a backend before calling run(...) on a circuit.

See also

Return to Quantum Rings SDK Documentation.