Skip to main content
  1. Home
  2. Computing
  3. News

Microsoft provides free lessons for quantum computing basics

Add as a preferred source on Google
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.”

Recommended Videos

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.

Kevin Parrish
Kevin started taking PCs apart in the 90s when Quake was on the way and his PC lacked the required components. Since then…
I hate sharing my Mac, but a face-unlocking app finally cured my privacy paranoia
Someone finally built the app locker every Mac user has been asking for.
FaceGate in action on Mac

If you have ever handed your Mac to a friend, family member, or coworker for "just a minute," you know the mild panic that follows. Sure, your Mac has a lock screen, but once someone is past it, they can open Messages, Photos, Notes, Mail, WhatsApp, and your browser.

iPhones had the same issue, but Apple solved it by adding an app lock feature with the iOS 18 update. Sadly, no such feature exists for macOS. That’s where the new FaceGate app for Mac can help you. It’s a free and open-source app that lets you lock apps on your Mac and even has some novel tricks up its sleeve. So, let’s talk about it, shall we?

Read more
The charm of a tiny Windows tablet is apparently at Microsoft. Long live the Surface Go!
Microsoft’s budget Surface era may be over
Microsoft Surface Go 3 stand.

Microsoft might be cleaning up its Surface lineup. According to Windows Central, Microsoft has stopped manufacturing the Surface Go and Surface Laptop Go lines, with no successors currently planned. Surface Go 4 and Surface Laptop Go 3 are reportedly out of stock in most places, and once remaining retail stock is gone, that may be it.

If this is true, then we are looking at the end of the brand's budget Surface PCs as Microsoft has plenty of premium Windows hardware.

Read more
Gemini Spark lands on the Mac, and it wants to tackle your chores while you relax
From messy downloads to date night reservations, Spark is here to lighten your load.
Gemini Spark mac app

Google has just announced a big batch of updates for Gemini Spark, making the assistant far more useful than before. Gemini Spark is finally coming to the Mac desktop app, bringing deeper app connections and a new way to keep tabs on what you care about. Let us break it down.

What can Spark do on your Mac now?

Read more