# How can I use an if function on the IBMQ experience

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.

• 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 Apr 4 at 12:22