|
||||||
|
Quantum computers will soon replace existing ones. However, the programmer can start using a quantum computer simulator today.
James Woodward reports in The Scotsman that a team of Bristol University scientists are claiming the worlds first optical quantum chip. Cherry Lewis, the project spokesperson, said: "We are almost getting to the point now where conventional computers cannot go any smaller so we need to go down a completely new route. We are talking nano-scale. Particles of light." This may mean that in the near future computers (an their users) will be able to benefit from concepts such as:
Of course, it may be a little while until any of these are actually on the market, but what any programmer can obtain is a quantum computer simulator Obtaining A Quantum Computer SimulatorFortunately obtaining a quantum computer simulator is not that difficult. There are just two steps:
Both modules must be downloaded into the same directory, although that directory can be anywhere on the computer. Starting the Quantum Computer SimulatorThe programmer starts the quantum computer simulator by double clicking on the Quantum Computer Haskell source file (as shown in figure 1 at the bottom of this article). Simple Quantum ComputationsSkibinski gives some simple examples of how the quantum computer can be used. For example the programmer can create a quantum register containing 5 qubits all initialized to state | 0 >: zeroRegister 5
The programmer can then see an example of quantum superposition can then by using the mix function: mix (zeroRegister 5)
The result of this can be seen in figure 2. A quantum computer simulator cannot, of course, truly replicate the performance that a real quantum computer will be able to achieve. It hasn't got the hardware. However, the programmer will be able to start to understand the concepts involved. And at least they'll have a bit of a head start when they do get their first quantum computer from Ebay. BNC101
The copyright of the article How to Simulate a Quantum Computer in Computer Programming Languages is owned by Mark Alexander Bain. Permission to republish How to Simulate a Quantum Computer in print or online must be granted by the author in writing.
|
||||||
|
|
||||||
|
|
||||||