Google News
logo
Quantum Computing - Interview Questions
How to Implement a quantum random number generator in Q Sharp?
Learn to write a basic quantum program in Q# that leverages the nature of quantum mechanics to produce a random number.
 
In this tutorial, you'll learn how to
 
* Create a Q# project.
* Prepare your development environment for writing quantum programs in Q#.
* Understand how Q# programs are structured.
* Work with qubits and superposition to build a quantum random number generator.

Prerequisites : 
* Install the Quantum Development Kit (QDK) using your preferred language and development environment. This tutorial presents the solution in three different formats:
* Q# standalone (Set up a Q# standalone environment)
* Q# and Python (Set up a Q# and Python environment)
* Q# and C# (Set up a Q# and .NET environment)
* If you already have the QDK installed, make sure you have updated the QDK (and the Python qsharp package, if applicable) to the latest version.
Advertisement