Tool­kits from the big guys

APC Australia - - Technotes -

To pro­gram your­self re­quires the stan­dard called OpenQASM. This is the ba­sis for all devel­op­ment kits. Many groups have de­vel­oped tool­kits us­ing this stan­dard. The best known ones are from IBM, D-Wave and Mi­crosoft.

IBM de­cided to use Python to cre­ate Qiskit, and you can down­load this kit from Github. It also has many sources and demon­stra­tion col­lec­tions avail­able. You can learn all about the cur­rent devel­op­ment state from there.

In both Eclipse and Net­beans, all you need to do is im­port the code into a project and ex­plore. Don’t for­get to in­stall Python 3.5 or higher be­fore you try to com­pile. IBM’s QE has these ex­am­ples in their Python tool­kit.

When you have the sources in­stalled, you can only run sim­u­la­tions on your own com­puter. If you want to run on a real quan­tum com­puter, get an ac­count on the IBM Q Ex­pe­ri­ence. The setup is sim­ple: all you need to do is open an ac­count and get your API to­ken from your ac­count. Then copy it into the Qcon­fig.py file of the project you’re work­ing on. There’s a credit sys­tem for us­ing the real ma­chines, so sim­u­late un­til you’re cer­tain you’ve got it right. If you’re re­ally clever, you may be able to gain ex­per­tise level. In that case, you can ob­tain more units to run ex­per­i­ments.

If you’re us­ing Vis­ual Stu­dio, then you can down­load the Qvis file and add the ex­ten­sion. You still need Python sup­port, though.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.