5

I am trying to build a circuit for quantum teleportation. On the simulator, everything runs fine and according to expectations, however, I am not able to run the algorithm on the real quantum processor.

ERROR_RUNNING_JOB is returned without any other explanation. I tried to implement two different circuits, the first one with controlled X and Z gates, the second one with gates X and Z are controlled by a value in the classical register. Please find both circuits below.

I appreciate any help.

Thanks.

Circuit with IFs Circuit with "normal" controlled X and Z gates

glS
  • 24,708
  • 5
  • 34
  • 108
Martin Vesely
  • 13,891
  • 4
  • 28
  • 65

2 Answers2

9

The issue is that you are applying operations after measurement gates and this is currently not available on the real hardware. I think the hardware also does not support reset operations mid-way through a circuit at the moment.

The best way forward is to keep running this on the simulator or try to find a different way of expressing the circuit such that it avoids these features.

met927
  • 3,251
  • 1
  • 9
  • 22
  • 3
    Also, according to https://en.wikipedia.org/wiki/Deferred_Measurement_Principle, intermediate measurements are not needed – Danylo Y Nov 05 '19 at 13:18
  • @DanyloY The deferred measurement principle is a red herring when it comes to communication tasks like teleportation. Yes, you get a circuit with equivalent measurement statistics. But in that new circuit the message was only transmitted at the end of time instead of when you wanted to send it. When you go to use it in real life, e.g. as part of a quantum internet architecture, you will find that deferring all communication indefinitely just doesn't work very well as a communication strategy. – Craig Gidney Nov 06 '19 at 23:51
  • @CraigGidney Yes, I understand that. But on a (local) quantum processor there is no sense to do intermediate measurements if we are going to use the results immediately. Teleportation is not a plain computational task, it's a communication, so anyway there is no sense to do it just on a single device. – Danylo Y Nov 07 '19 at 10:34
1

Thanks for help, it works. Here is a changed circuit and results on IBM Q (Vigo processor). Just note that q-bit $0.5|0\rangle + \sqrt {0.75}|1\rangle$ is teleported from q-bit q0 to q2. Angle in Ry gate is $2\pi/3$.

Circuit, Results

Sanchayan Dutta
  • 17,497
  • 7
  • 48
  • 110
Martin Vesely
  • 13,891
  • 4
  • 28
  • 65
  • 1
    Glad to hear it works! Would you be able to press accept on the answer above so that the question can be marked as answered? Thank you! – met927 Nov 06 '19 at 09:05
  • I would like to Accept the answer but I do not see any button to do so. – Martin Vesely Nov 06 '19 at 11:36
  • 1
    This link explains how to accept an answer – met927 Nov 06 '19 at 12:46
  • Probably, there is something wrong. I do not see check mark under voting. Do you now where can I turn to for help on this? – Martin Vesely Nov 07 '19 at 05:55
  • 1
    @MartinVesely that's probably because you are not the same user that asked the question (I mean, I get that you are the same person, but the login you used to answer here was different than the one you used to ask the question, as you can see from the different profile images). You need to login with the same account that asked the question. If that was a temporary account, that might not be possible. You can ask a mod to merge the accounts (e.g. by raising a flag on the question and explaining the situation) – glS Nov 07 '19 at 11:22
  • @MartinVesely If you are interested in merging your accounts, go to the 'contact us' link at the bottom of every page and request a merge for your accounts. See this page for more help. Thank you! – auden Nov 07 '19 at 15:14