From traditional computers and Python programming to qubits, quantum algorithms and the future of computing
1. From classical computers to quantum computing
I have spent much of my professional life developing software and working with databases, computer systems and IT architecture. During those years, I have watched computing change dramatically. Machines that once occupied entire rooms have been replaced by powerful computers that fit in our pockets. Yet the basic idea behind conventional digital computing remains largely the same: information is represented by bits, each with a logical value of 0 or 1.
Modern processors use billions of transistors to carry out calculations. Multiple CPU cores, graphics processors and cloud services make it possible to solve problems that were once impractical. My own Python applications, whether they analyse data or communicate with solar inverters, ultimately run on classical hardware.
Of course, the semiconductor devices inside conventional computers depend on quantum physics. That does not, however, make a laptop a quantum computer. The important difference is how information is encoded and manipulated.
Why investigate something so different? Some problems, particularly the simulation of complex quantum systems, become extremely demanding for classical computers. Quantum computers offer a different approach, using controlled quantum states as part of the calculation itself. This does not mean they will be faster at everything.
2. Bits, qubits and superposition
A classical bit represents either 0 or 1. The equivalent unit in a quantum computer is a qubit. When measured in the computational basis, a qubit also produces a 0 or a 1. Before measurement, however, it may be prepared in a superposition of the two basis states.
People sometimes say that a qubit is “0 and 1 at the same time”. I find that description convenient but potentially misleading. It does not mean that we can simply read both answers. A quantum state is described by probability amplitudes, including their relative phases. Those phases matter because they make interference possible.
Three qubits have eight computational basis states; ten have 1,024; twenty have 1,048,576. A register of qubits can be in a superposition involving many such states. But we cannot measure that register once and read every amplitude. A useful algorithm must arrange the quantum operations so that the desired measurement outcomes become more likely.
3. Three essential principles
Superposition
Suppose I prepare a qubit so that measurement gives 0 with a probability of 50% and 1 with a probability of 50%. If I repeat the same experiment 1,000 times, I should see roughly 500 of each result. The exact counts will fluctuate. Unlike an ordinary random coin toss, the unmeasured quantum state can retain phase relationships that influence later operations.
Entanglement
Two qubits are entangled when their joint quantum state cannot be described as a pair of independent individual states. For a particular entangled state, measurements of both qubits in the same basis may always agree, although each individual outcome is unpredictable.
Entanglement is experimentally established. It is an important resource in quantum information processing, but it is not a way to send messages faster than light. Nor does entanglement, by itself, make every calculation faster.
Interference
Just as waves can reinforce or cancel each other, quantum probability amplitudes can interfere. Carefully designed quantum algorithms use interference to strengthen some outcomes and suppress others. This is central to understanding where a genuine computational advantage might come from.
4. What is a quantum circuit?
Classical computers use logic gates. Quantum computers use quantum gates to change the state of one or more qubits. A sequence of such operations forms a quantum circuit.
Consider a single qubit initially prepared in state 0. A Hadamard gate puts it into an equal superposition. If we measure immediately, the outcomes are roughly half zeros and half ones. But if we apply a second Hadamard gate before measuring, the qubit returns to state 0 in an ideal circuit. The second gate does not merely create another random result: it uses coherent interference to undo the first operation.
I think this little experiment captures an important point. Quantum computing is not about obtaining all possible answers at once. It is about controlling quantum evolution so that a measurement reveals useful information.
5. A practical Python experiment using Qiskit
Coming from a software development background, this is the part I particularly enjoy. We can describe a quantum circuit with Python and run it on an ordinary computer using a simulator. The example below prepares two qubits in an entangled Bell state.
Step 1 – Install the software
With Python installed, open a terminal and enter:
python -m pip install qiskit qiskit-aer qiskit-ibm-runtime
For this first experiment, we only need Qiskit and Qiskit Aer. The IBM Runtime package is useful if we later want to access cloud-based quantum hardware.
Step 2 – Create and simulate the circuit
from qiskit import QuantumCircuit, transpile
from qiskit_aer import AerSimulator
# Two qubits, initially in state |00>
qc = QuantumCircuit(2)
# Superposition on the first qubit
qc.h(0)
# Entangle the second qubit with the first
qc.cx(0, 1)
# Measure both qubits
qc.measure_all()
# Simulate 1,000 repetitions
simulator = AerSimulator()
compiled = transpile(qc, simulator)
result = simulator.run(compiled, shots=1000).result()
print("Quantum measurement results:")
print(result.get_counts())
The instruction qc.h(0) applies a Hadamard gate. The instruction qc.cx(0, 1) applies a controlled-NOT gate. Together, they prepare a Bell state. The final instruction measures both qubits.
Step 3 – Understand the results
A typical simulated result is:
Quantum measurement results:
{'00': 503, '11': 497}
Your exact numbers will differ, but the pattern should remain: approximately half 00 and half 11. In an ideal simulation, 01 and 10 will not appear.
It is important to be precise here. Correlations in just one measurement basis are not sufficient on their own to prove entanglement. We know this circuit prepares an entangled state from the quantum operations and the corresponding state description. Demonstrating non-classical correlations experimentally requires additional measurements or tests.
Step 4 – From simulation to quantum hardware
IBM provides cloud access to quantum processors through the IBM Quantum Platform. After creating an account and configuring the appropriate access, we can adapt the circuit for a compatible machine and submit it remotely.
The precise Python client interface, account requirements and usage limits change over time. For that reason, I recommend following IBM’s current learning materials and documentation for the hardware-execution step instead of relying on an older example that may no longer match the installed software.
Real hardware may occasionally produce 01 or 10 because gates and measurements are imperfect. Such errors are among the greatest challenges facing quantum computing.
Our small program does not demonstrate a quantum speed-up. A classical computer can simulate two qubits with ease. Its value is educational: we have described a physical quantum process in Python, manipulated the state and examined its measurement outcomes.
6. Which algorithms could make quantum computing useful?
Shor’s algorithm
Peter Shor developed a quantum algorithm that can factor large integers efficiently in the relevant theoretical model. A sufficiently large, fault-tolerant quantum computer could therefore undermine widely used public-key systems such as RSA. This is a serious reason to prepare for post-quantum cryptography, although today’s quantum processors cannot simply break properly implemented large RSA keys.
Grover’s algorithm
Lov Grover’s search algorithm offers a quadratic reduction in the number of queries for an idealised unstructured search problem. With one million candidates, the number of queries scales on the order of one thousand rather than one million. This does not mean that an ordinary indexed database will suddenly become one thousand times faster. Data access, algorithm overhead and excellent classical alternatives matter.
Quantum simulation
Perhaps the most natural application is simulating molecules and materials that themselves obey quantum mechanics. Better calculations of electronic structure and chemical processes could contribute to materials science, catalysts, chemistry and, eventually, energy storage. Whether a quantum machine will outperform the best classical methods depends on the specific problem, hardware and error rates.
7. Quantum computing, batteries and energy systems
This topic connects directly with another area of my work. I have designed and operated several off-grid installations, as well as a grid-connected solar installation. My systems use batteries, inverters, charge controllers and software that I have developed to monitor their performance.
Quantum computers will not directly increase the output of a solar panel or improve battery charging simply by being connected to an installation. In the longer term, however, quantum simulation could help scientists study the electronic properties of battery electrodes, solid electrolytes and solar-cell materials.
That is promising research, not a proven commercial revolution. For controlling my own Victron and Solis equipment, conventional Python applications and ordinary communications interfaces remain the right tools. Any future quantum advantage would have to justify its cost, complexity and energy consumption.
8. Quantum computing and artificial intelligence
Today’s AI applications rely largely on conventional CPUs, GPUs and specialised accelerators. Researchers are investigating quantum machine learning and hybrid methods, but the practical benefits are uncertain.
One obstacle is data: transferring large classical datasets into quantum states can be expensive, and extracting useful results from a measurement also has costs. A theoretical improvement inside an algorithm may disappear once those costs are included. I therefore remain sceptical of claims that quantum computers will soon replace GPUs or make every AI model dramatically faster.
9. How are qubits built?
The word qubit refers to a unit of quantum information, not to one particular physical component. Several engineering approaches are being explored:
-
Superconducting circuits: Controllable electrical circuits operated at extremely low temperatures, used by research groups including IBM and Google.
-
Trapped ions: Electrically charged atoms held in electromagnetic fields and manipulated using lasers.
-
Neutral atoms: Atoms held and controlled in optical traps.
-
Photonic systems: Quantum states of light used to encode and manipulate information.
-
Semiconductor spin qubits: Quantum information represented using spins in semiconductor devices.
Each has strengths and engineering difficulties. It is not yet clear which architecture, or combination of architectures, will prove most suitable for large-scale reliable computing.
10. The central engineering challenge: errors
Quantum states are vulnerable to noise and unwanted interactions with their environment, a problem often discussed in terms of decoherence. Gate errors and imperfect measurements also affect calculations. If an algorithm requires many operations, small errors can accumulate.
Conventional computers correct errors using redundancy and coding. Quantum error correction is more difficult because an unknown quantum state cannot simply be copied. Instead, information can be encoded across multiple physical qubits to create a more reliable logical qubit.
A physical qubit is a real component; a logical qubit is an encoded unit of information protected by an error-correction scheme. A processor with more physical qubits is not automatically a more useful processor. Gate fidelity, connectivity, coherence and logical error rates matter just as much.
Experiments with increasingly sophisticated error-correcting codes, including published work associated with Google’s Willow processor, have shown important progress. But reducing logical error rates in a controlled experiment is not the same as delivering a large, general-purpose, fault-tolerant quantum computer.
11. Why information security must prepare now
As someone who has worked with IT architecture, I consider the security implications particularly relevant. Future large-scale quantum computers could threaten RSA and some other public-key algorithms. Sensitive encrypted data collected today might be stored and attacked later, once better technology exists.
Fortunately, post-quantum cryptographic algorithms run on ordinary computers. They do not require quantum processors. The US National Institute of Standards and Technology (NIST) published its first major post-quantum cryptography standards in 2024. For organisations, the practical task is to identify the cryptographic systems they rely on and plan a careful transition.
This is an immediate systems-management issue even though the future timetable for powerful quantum attacks remains uncertain.
12. Will quantum computers replace classical computers?
I do not expect quantum processors to replace the computers we use for everyday tasks. Web services, databases, office applications and most industrial control systems are very well served by classical technology. Quantum computers are more likely to become specialised resources connected to larger classical computing environments.
From an IT architecture perspective, this is a familiar pattern. We already combine CPUs, GPUs, networks and dedicated processors. A quantum processing unit may eventually become another resource for suitable workloads. The real question is not merely whether a calculation is possible, but whether the complete system is faster, cheaper, reliable enough and genuinely useful.
13. Does quantum computing prove that parallel universes exist?
There is a final question that fascinates me as a physicist. Quantum computing uses experimentally established phenomena such as superposition, entanglement and interference. But what does that tell us about the nature of reality?
In the Many-Worlds Interpretation, the universal quantum state evolves without collapse, and measurement outcomes are associated with different branches. Some popular explanations suggest that a quantum computer calculates across parallel universes. That is an interpretation, not a conclusion established by the success of quantum computers.
The mathematical operations of quantum computing can be understood without assuming that physically separate parallel universes have been demonstrated. I discuss this further in my article Does Quantum Mechanics Really Mean That Parallel Universes Exist?.
This distinction between a successful mathematical theory and what it tells us about physical reality is one of the reasons I still find quantum mechanics so interesting.
14. My personal perspective and conclusion
My interest in quantum computing draws on two parts of my background. From physics and astrophysics comes my curiosity about the laws of nature. From decades in software development and IT architecture comes my interest in how we turn ideas into systems that work reliably in practice.
I am impressed that a relatively small Python program can prepare an entangled quantum state, and that similar circuits can be submitted to experimental processors over the internet. I am equally aware that this does not yet amount to a practical replacement for conventional computing.
We must assess ambitious claims carefully: computational performance, error correction, hardware costs, data-transfer overhead, energy requirements and long-term maintainability all matter. My expectation is that classical computing will remain central, while quantum processors may prove valuable for carefully chosen scientific and industrial applications.
For me, the most exciting aspect is not the promise of universally faster computers. It is the possibility of using the behaviour of nature itself in a new kind of information-processing system.
Further reading and references
-
IBM Quantum Platform – quantum processors and learning resources.
-
Qiskit Aer – simulation of quantum circuits.
-
Shor, P. W. (1997) – quantum algorithms for factoring and discrete logarithms.
-
Grover, L. K. (1996) – quantum search algorithm.
-
Google Quantum AI and collaborators – below-threshold quantum error correction, Nature.
-
NIST Post-Quantum Cryptography – standards and migration resources.
-
Stanford Encyclopedia of Philosophy: Quantum Computing – deeper conceptual background.