Skip to content

Quantum computing: executes in 200 lines of Commodore 64 BASIC!


Fascinating potential of quantum computing explored on Commodore 64

When discussing quantum laptop programs, we repeatedly think about extraordinarily superior and state-of-the-art models. Nonetheless, it is very important observe that any computing system will be primarily characterised by its velocity and accuracy in performing duties, be it classical or quantum computing. As proof of this,[David ‘Duck’ Gessa]has managed to implement a sequence of quantum gates on a Commodore 64 utilizing solely 200 traces of BASIC code.

The significance of the qubit in quantum computing

On this planet of quantum computing, the qubit serves as a elementary unit of data. Apparently, its use is just not restricted to specialised units, as researchers have lengthy been in a position to simulate qubits even on easy 8-bit microprocessors. (David) takes benefit of this reality and simulates numerous quantum gates on the Commodore 64, together with Pauli-X, Pauli-Y, Pauli-Z, Hadamard, CNOT, and SWAP. All these simulations are carried out utilizing a two-qubit system on a machine that was first launched within the early eighties.

A Restricted But Helpful Studying Instrument

Admittedly, in the case of real-world functions it will not be significantly wise to simulate a two-qubit system on a general-purpose microprocessor working at solely ~1 MHz. Nonetheless, it serves as a helpful studying software, offering a extremely accessible and attention-grabbing introduction to the sphere of quantum computing. By demonstrating the power to run quantum gates on tools that’s greater than three many years previous, (David) encourages the general public to find the attention-grabbing world of quantum laptop programs.


The work accomplished by (David ‘Duck’ Gesa) on the Commodore 64 highlights the potential of quantum computing and its attain as an educational software. Whereas the constraints of working a quantum gate on such a machine are clear, it gives an thrilling glimpse into the sphere of quantum computing for novices and fanatics alike.

Steadily Requested Questions (FAQs)

1. What’s the significance of qubit in quantum computing?

The qubit, which stands for quantum bit, is the important unit of data in quantum computing. Simply as classical laptop programs use transistors, quantum laptop programs depend on qubits to course of and retailer data. Qubits use particular properties of quantum mechanics, resembling superposition and entanglement, to carry out calculations that exceed the capabilities of classical laptop programs.

2. (David ‘Duck’ Gessa) How does one emulate quantum gates on the Commodore 64?

(David) achieves this simulation by making the most of the comfort of the BASIC programming language. Utilizing solely 200 traces of code, he implements quite a lot of quantum gates, such because the Pouli-X, Pouli-Y, Pouli-Z, Hadamard, CNOT, and Swap, on the Commodore 64 microprocessor. Though the Commodore 64 is a general-purpose machine with restricted processing velocity, it permits for a convincing demonstration of quantum computing concepts.

3. Is there any wise function for working a quantum gate on a Commodore 64?

When it comes to sensible functions, working quantum gates on the Commodore 64 or comparable programs is extraordinarily restrictive. The processing energy and velocity of those machines is far decrease than that of specialised quantum computer systems. Nonetheless, the simulation serves as an environment friendly studying software, introducing individuals to the concepts and ideas of quantum computing in an simply accessible approach.

Please see this hyperlink for extra data


To entry further data, kindly consult with the next link