Circuit Size and Depth

Why shorter circuits give better results on real hardware.

Each completed job reports the circuit's qubit count and depth (the longest chain of gates). On real hardware every gate adds a little error, so a shallower circuit usually gives cleaner counts.

Before running on hardware, circuits are compiled for the chosen device: gates are rewritten into the device's native set and qubits are mapped to its layout. This can add gates, especially swaps between qubits that are not directly connected.

Tips: cancel gates that undo each other, keep entangling gates between neighbouring qubits, and test on the simulator first.