r/QuantumComputing • u/No-Contribution1070 • 5d ago
Quantum Information Seeking Advice - Quantum Coding
Hey guys, I am new to the Quantum Computing world and I was wondering if I can steal the ears (eyes in this case) of a professional who is very familiar with the topic.
- What really is quantum computing? (Srry)
- Will this tech replace classical stacks like GPUs or work along side with it
- Is Quantum Computing just a buzz word, or is the tech legit and how far we from true net positive computers?
- What is quantum coding? how does it differ from regular coding exactly? Is it harder, easier, what does it look like? (Please provide an example of line of quantum code if you can)
- What are the current top quantum coding platforms out there right now?
- Where does one start to learn?
Thank you in advance for your time.
6
Upvotes
View all comments
4
u/dark_blue_thunder M.Sc. Physics 5d ago edited 5d ago
Quantum computing is computation using the laws of quantum mechanics. It starts with a qubit (quantum bit), which, in contrast to a classical bit, can be in a superposition of the states $|0⟩$ and $|1⟩$. There are infinitely many possible superposition states, but this does not mean you can store and read out unlimited classical information. When you measure a qubit in the computational basis, you obtain either 0 or 1. For n qubits, the state-space dimension scales exponentially as $2^n$, but measuring all of them once gives you an n-bit outcome not access to all the state’s amplitudes.
Quantum computers are expected to work alongside classical computers, including CPUs and GPUs, rather than replace them generally. Their potential advantages are for particular problems.
One of the issues in quantum computing is scaling. Qubits are basically two-level quantum systems, and superconducting qubits, for example, are very sensitive to environmental noise and temperature. Decoherence is already an issue for individual qubits, and preserving coherence while scaling is challenging. Recently, IBM connected two quantum processors, demonstrating an average quantum state-transfer fidelity of 99% across the links.
That was an important milestone towards modular scaling, although it doesn’t solve all the scaling challenges.
The technology is real, and some quantum algorithms were developed before suitable quantum hardware existed to run them at a useful scale. Companies have ambitious commercial roadmaps, but no one can guarantee the timeline. Whether a quantum computer provides a practical net benefit depends on the application and its total costs, accuracy, and performance compared with classical alternatives.
As in regular electronics, where we have AND, OR, NAND, NOR, and NOT gates, in quantum programming we have quantum gates. These transform qubit states. A gate acting on k qubits is represented by a ${2^k} \times {2^k}$ unitary matrix. Physically, for superconducting qubits, many gates are implemented using microwave pulses; others also involve tuning interactions between qubits.
For example, in Qiskit:
from qiskit import QuantumCircuit
This builds a circuit; it doesn’t execute it yet. Ideally, repeated executions would give approximately 50% zeros and 50% ones.
ASCII diagrams (generated by AI):
Qiskit is a good starting platform for beginners, in my opinion. Other options include Cirq and PennyLane.
In my case, I started with books on quantum mechanics, linear algebra, quantum computing theory, and Python programming. You don’t need to finish all of quantum mechanics before trying simple circuits; you can learn the theory and programming alongside each other.
(Use Obsidian to view the reply properly)