I am having trouble understanding how the transpiler works in IBM quantum computers. I am studying the spatial noise correlation between two qubits in an IBM Q device. For that, I don't want the transpiler to change my input circuit. Is it possible to overwrite the transpiler? Can someone explain how the transpiler works?
1 Answer
$\begingroup$
$\endgroup$
2
When transpiling you can set the optimization level to 0, to prevent the transpiler from doing anything but unrolling to the natural basis gates of the device, eg., circuit = transpile(circuit, backend, optimization_level=0)
.
-
$\begingroup$ In addition to unrolling to the device's basis gates, it may also change the circuit in order to fit the device's connectivity $\endgroup$ Commented Dec 11, 2020 at 9:27
-
$\begingroup$ Information about the transpiler: qiskit.org/documentation/apidoc/transpiler.html and qiskit.org/documentation/tutorials/circuits_advanced/… $\endgroup$ Commented Dec 11, 2020 at 9:30