I have seen elsewhere on here that the quantum simulators allow boolean functions (I'm using the if function) but the actual quantum computer doesn't currently support if functions; is there a workaround? I'm trying to demonstrate quantum teleportation for my disso and the last step involves using an if function on the qubits.

  • $\begingroup$ I think there is a confusion between multiple definitions here. A boolean function is a function which takes a boolean input-s and outputs boolean value-s. The if, as used in computer science is a conditional control flow element, which is not a boolean function. Quantum computers can do both, for example, the classical not is the quantum $X$ gate. On the other hand, the classical if equavalent is a controlled gate $\endgroup$ Apr 4 at 12:22


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.