2

Trying quantum teleportation in https://github.com/Qiskit/qiskit-textbook/blob/master/content/ch-algorithms/teleportation.ipynb

Succesful runs in 'qasm_simulator', but when switching to IBMQBackend('ibmqx2') I get IBMQJobFailError

see circuit

holmen
  • 21
  • 1

2 Answers2

2

The error is caused by appending gates onto qubits following a measurement. On qubit 1 and qubit 0, you attach a cx gate after a measurementhas already been placed. This will compile on the simulator, but it is not something that is supported on the real hardware.

0

You should put measurement after all quantum gates. According to the theory, there is no difference whether gates (in this case CNOTs) are controlled by qubits or classical bits. I encountered the same problem, see solution here.

Martin Vesely
  • 13,891
  • 4
  • 28
  • 65