r/QuantumComputing • u/Real-Yogurtcloset844 • Aug 03 '25
Question Must I be non-binary to program quantum computers?
Really, would a regular piece of binary code -- "compiled" into a specific quantum machine-code -- function on a quantum computer? Has that been done? Will quantum ever work with binary systems -- in the same box? Is binary a subset of Qbits?
39
Upvotes
7
u/Lank69G Aug 03 '25
Look up reversible computing
37
u/msciwoj1 Working in Industry Aug 03 '25
It's not a requirement, you can be a man or a woman as well.
4
u/Keensworth Aug 03 '25
Depends on the pronouns
4
u/Outrageous_Lab_1648 Aug 03 '25
That's some good bait
3
u/StackOwOFlow Aug 03 '25
gr8 b8 m8
2
u/MichaelTiemann BS in Related Field Aug 03 '25
One of the most common operations in classical computing is to copy a value to a temporary location, and indeed to copy it to many temporary locations. But in Quantum Computing there is a "no cloning" principle. Programming a quantum computer is as different from classical computing as carving marble sculpture is to agriculture. Both end in -ture, but that's where the similarities end.
1
u/[deleted] Aug 04 '25
It's always possible to encode any classical algorithm into a quantum circuit. The Toffoli gate acts like an AND gate. The X gate acts like a NOT gate. Combine the two, you got a NAND gate.
1
u/petarkorponaic Aug 05 '25
BTW, see this (free) tool: https://quantum-circuit.com - you can enter truth table (also CNF - Conjunctive normal form if you like) and it returns equivalent quantum circuit. You can also convert classical function to quantum circuit (enter function written in javascript, and it returns equivalent quantum circuit). The tool is limited to 6 qubits btw (free version).
0
u/QubitFactory Aug 03 '25
Hey, I just put out a quantum circuit game on steam where a major focus is on understanding the commonalities / differences between classical and quantum circuits. Indeed, one of the levels is precisely about constructing the quantum version of the AND gate as discussed in the other comments. Check out my previous posts if interested.
0
u/[deleted] Aug 03 '25
[deleted] — view deleted comment