Microsoft provides free lessons for quantum computing basics

microsoft provides free quantum computing lessons quantumkatas
Steven Winkelman/Digital Trends

Want to learn more about quantum computing and how to program in the Q# language? Microsoft just launched Quantum Katas, an open source project that does just that by providing you with tutorials for learning at your own pace. According to Microsoft, these exercises are based on three learning principles: Active learning, incremental complexity growth, and feedback.

“Each kata offers a sequence of tasks on a certain quantum computing topic, progressing from simple to challenging,” Microsoft Quantum Team states. “Each task requires you to fill in some code; the first task might require just one line, and the last one might require a sizable fragment of code. A testing framework validates your solutions, providing real-time feedback.”

Currently, there are only four katas covering basic quantum computing gates, superposition, measurements, and the Deutsch-Jozsa algorithm. Each kata is a stand-alone project containing a sequence of tasks progressing from trivial to challenging, requiring you to manually insert chunks of code. They also provide a testing framework that sets up, runs and validates your final code.

For instance, the first kata covers computing gates, another term for basic operations, used in quantum computing along with the concept of adjoint and controlled gate versions. Those provided in the kata belong to the Microsoft.Quantum.Primitive namespace, the notes reveal.

To use these katas, you need to install the Quantum Development Kit for Windows 10, MacOS and Linux. This kit is typically used to build your own quantum computing programs and experiments. It includes the Q# language and compiler, the Q# standard library, a local quantum machine simulator, a quantum computer trace simulator, and two other components. After installing the kit, you can grab the katas through Git or by downloading stand-alone copies in a ZIP file.

Microsoft says you shouldn’t panic when all tests initially fail after opening a kata. You need to jump into the Tasks.qs file and manually enter code to complete all tasks. These tasks are covered by a unit test that requires you to insert the correct code, rebuild the project, and then re-run the related tests. If you did everything correctly, the corresponding unit task will pass and you can move on to the next stage.

Microsoft’s katas arrive after the company hosted its first Q# coding contest in early July, challenging more than 650 developers and new programmers alike. According to Microsoft, more than 350 participants solved at least one Q# problem while 100 participants solved all 15. The problems ranged from generating a superposition of all basis states to creating a second array reconstruction algorithm. The contest winner completed all tasks under 2.5 hours, Microsoft says.

Given Microsoft’s Quantum Katas is an open-source project, the company welcomes all contributions and suggestions. “Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution,” Microsoft adds.

Product Review

Amazon Fire TV Cube is the entertainment control center we've waited decades for

The Amazon Fire TV Cube didn't receive the fanfare it should have. Learn here why this is the best streaming device we’ve tested to date, and what Amazon changed to earn such high praise from unabashed Roku lovers.
Deals

Amazon cuts 44% off on Fisher-Price Smart Cycle for Kids this Prime Day

The Fisher-Price Think & Learn Smart Cycle is currently discounted by $48 from its original price of $110. Only for Prime Day, you can take it home to your kids for the amazing price of only $62.
Smart Home

Make Alexa your own: How to change the digital assistant's voice

If you live in a country where English is not the primary language, or you're learning a second language and want to get all the practice you can get, you can set Alexa's default language to one of nine other languages.
Small Business

The 15 best tech jobs boast top salaries, high satisfaction, lots of openings

June may be ending, but the bonanza of tech jobs just keeps coming. High-paying jobs abound at companies where people love to work. If you’re ready to make a change, this is a great time to look for something more fulfilling.   
Computing

Dell launches $200 discount on XPS 13 and Inspiron laptops for Prime Day 2019

If you're in the market for a new laptop, Dell's Cyber Monday in July sale might be worth considering along with your Prime Day 2019 shopping plans. Dell's sale has a wide variety of discounted laptops, including its XPS 13 laptop.
Deals

Alienware m15 headlines Dell’s gaming PC sale to take on Amazon’s Prime Day

If you're looking to save some money on a new gaming PC or laptop, you may want to skip Amazon's Prime Day for Dell's Cyber Monday in July event. As part of the sale, you can score up to $710 in savings on the Alienware m15.
Computing

Linux is now beating Windows on Microsoft’s own turf, and Azure is better for it

According to remarks by a developer at Microsoft, there are now more instances of Linux-based operating systems running on the company's Azure cloud platform than Windows-based ones.
Computing

The best Prime Day laptop deals: Razer, HP, and Dell XPS discounts

Amazon Prime Day is just around the corner, and it's time to start preparing for some amazing laptop deals. Every year, we see huge discounts on gaming laptops, MacBooks, Chromebooks, and more.
Computing

AMD says it duped Nvidia with a price fakeout, escalating a two-front chip war

According to a recent interview with Scott Herkelman of AMD's Radeon Business Unit, AMD successfully convinced Nvidia they would launch their new GPUs at a higher price than they did, sabotaging Nvidias RTX Super launch.
Computing

Will the Surface Pro 7 ditch Intel chips for Qualcomm’s 5G support?

Microsoft might announce a new Surface Pro 7 towards the end of this year and according to new rumors, it might do with a new chip under the hood. Not an Intel chip though, but one from AMD, or even Qualcomm.
Computing

You can get a 2018 MacBook Air for just $999 with this latest deal from B&H

Other retailers like B&H are offering their own sweet laptop deals during Prime Day 2019. In fact, you can score a 13-inch 2018 MacBook Air with a Retina display at a $100 discount from B&H right now.
Computing

Upgrade your gaming rig with our favorite graphics cards for every budget

If you're serious about games, a good graphics card is essential. There’s no one-size-fits-all option for graphics cards, but our recommendations can help you pick from the best graphics cards for your needs.
Computing

AMD or Intel? We take a look at the pros and cons of both processors

When it comes to selecting a CPU for your PC, there's no shortage of chips for you to choose from. With Ryzen, Threadripper, and Core i9 CPUs though, the AMD vs. Intel argument is muddier than ever.
Deals

The best mouse deals for Prime Day 2019: Razer, Logitech, and more

This year's big shopping event, Amazon Prime Day, offers some fantastic discounts on mice. We've scoured this year's sales and made picks for what we think are the best mice you can buy on Prime Day.