1
Question
2
Target
3
Transpile
4
Simulator
5
Summary

Transpilation, Device Choice, and Local Simulation

Do we transpile to the exact IBM machine, and what changes if we do not specify hardware at all?

The short answer is yes: when you target a specific backend, transpilation adapts the circuit to that device’s basis gates, connectivity, and constraints. But if you run on a local simulator without a hardware target, the transpiler solves a different problem.

Why the Target Matters

A quantum circuit is abstract until you choose where it will actually live.

A textbook circuit describes logical intent. A hardware backend adds physical facts: which qubits can talk directly, what native gate set exists, what timing or pulse constraints apply, and which qubits currently behave better or worse.

That means “the same circuit” can compile into different gate sequences and different depths depending on the backend. Device choice is not packaging. It changes the workload.

What Transpilation Does on Real Hardware

It maps the abstract circuit to what the chosen machine can really execute.

For an IBM backend, transpilation typically decomposes the circuit into the backend’s supported basis gates, inserts routing operations so non-adjacent qubits can interact, and applies optimization passes to reduce cost. In practice, this can add SWAPs, change the order of operations, and reshape the depth substantially.

So yes, if you specify the exact backend, you are effectively asking the compiler to produce a circuit tailored to that device. That is why two hardware runs with the same logical algorithm can behave differently even before any stochastic noise enters.

What Happens on a Local Simulator

Without a hardware target, the transpiler optimizes for a generic execution model rather than a physical device.

If you use a local simulator with no backend-specific target, the compiler usually assumes a generic gate model or the simulator’s supported instruction set. There may be no connectivity penalty, no calibration-aware layout choice, and no need to decompose toward a specific chip topology.

That makes simulators excellent for algorithm debugging and logical verification, but poor substitutes for hardware reality unless you deliberately configure them to emulate a backend and noise model. “Runs on simulator” is therefore evidence about logic, not automatic evidence about deployability.

Summary

Transpilation always targets something. The only question is whether that something is a real machine or an abstract simulator model.

When you pick an IBM device, the circuit is compiled toward that hardware. When you do not, the circuit is compiled for a more generic target. Both are valid, but they answer different questions. Hardware-targeted transpilation tells you what will actually run; simulator-targeted transpilation tells you whether the algorithm is logically coherent in a simplified world.

Continue the Quantum FAQ

The last story addresses a deeper algorithm question: how parameters are chosen in Shor, Grover, and related algorithms, and why that is usually not deep-learning-style gradient descent.