If a Q# operation does not use qubits or quatum specific gates, will then the CLR generate bytecode that will be executed by the CPU and not the QPU(quantum processor)?
Asked
Active
Viewed 57 times
1 Answers
1
Yes, exactly. The Q# compiler translates the purely classical parts of your code into C#, which gets compiled (by the C# compiler) into standard .NET MSIL, JITed by the .NET Core runtime, and executed on a normal CPU.

Alan Geller
- 494
- 2
- 5
-
Thank you for the answer! For a while I thought that any code I write in Q# uses in the back-end the quantum processor. But this is sneaky, yet clear what it's doing. Thank you again! – Mircea Suceveanu May 10 '19 at 05:32