1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-quantum

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
README.md 1.7 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Chris Granade Отправлено 20.07.2021 02:51 f04301e
page_type languages products description
sample
qsharp
qdk
This sample implements a quantum random number generator using Q#, a good first example to teach how to use the language.

Creating random numbers with quantum computing

This sample implements a quantum random number generator, a very simple application that is useful to learn how to write a first Q# program.

In the Q# code (Qrng.qs) you will find the Q# operation for extracting a random bit using quantum measurements over a qubit in superposition. For more information, you can take a look at the full tutorial.

You will also find a Q# operation that creates a random integer from 0 to a maximum integer by invoking several times the Q# operation for extracting a random bit.

Prerequisites

Running the Sample

To run the sample, use the dotnet run command from your terminal. To run the sample via the Python host program, run python host.py from your terminal.

Manifest

  • Qrng.qs: Q# code implementing quantum operations for this sample.
  • host.py: Python host program that imports and runs the sample.
  • Qrng.csproj: Main Q# project for the sample.

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-quantum.git
git@api.gitlife.ru:oschina-mirror/mirrors-quantum.git
oschina-mirror
mirrors-quantum
mirrors-quantum
main