Choose a target model

A logical circuit describes interactions between abstract qubits. A device description says where physical qubits reside, which operations are native and which pairs can interact. A compilation run needs both. Even devices with the same qubit count can make different implementations preferable.

Account for routing and scheduling

If an intended operation uses a pair that cannot interact directly, a compiler may route it through a sequence of SWAPs and then translate the result into native gates. Placement affects which detours are required. On platforms that can move or rearrange atoms, movement introduces its own timing, interaction and control constraints.

Look at the number and depth of two-qubit operations, then consider idle intervals and the assumptions behind the hardware model. A smaller source diagram alone gives little information about those quantities.

Test the invariant

Start with the three-qubit GHZ template and draw a line connecting the three physical positions. Compare an implementation that uses only adjacent pairs with a proposed circuit that requires an end-to-end operation. Track how a SWAP changes the logical-to-physical mapping and map the output wires back before comparing logical behavior.

Further reading

Try a related example