2

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?

glS
  • 24,708
  • 5
  • 34
  • 108
Gem
  • 79
  • 4
  • I have asked a question before(https://quantumcomputing.stackexchange.com/questions/15045/qubit-connectivity-of-ibm-quantum-computer) and it is alike your problem, maybe the answers are helpful. – Yitian Wang Dec 11 '20 at 01:05

1 Answers1

3

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).

ThomasAlexander
  • 711
  • 3
  • 3
  • In addition to unrolling to the device's basis gates, it may also change the circuit in order to fit the device's connectivity – Yael Ben-Haim Dec 11 '20 at 09:27
  • Information about the transpiler: https://qiskit.org/documentation/apidoc/transpiler.html and https://qiskit.org/documentation/tutorials/circuits_advanced/04_transpiler_passes_and_passmanager.html – Yael Ben-Haim Dec 11 '20 at 09:30