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

OSCHINA-MIRROR/mirrors-quantum

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
README.md 2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Sarah Marshall Отправлено 20.08.2021 01:20 5c2c017
page_type languages products description urlFragment jupyter
sample
qsharp
qdk
This sample uses the CHSH game to demonstrate how Q# programs can be used to prepare and work with entanglement.
validating-quantum-mechanics
jupytext kernelspec
cell_markers text_representation
region,endregion
extension format_name format_version jupytext_version
.md
markdown
1.2
1.5.2
display_name language name
.NET (PowerShell)
PowerShell
.net-powershell

Validating Quantum Mechanics with the CHSH Game

This sample demonstrates:

  • How to prepare entangled states with Q#.
  • How to measure part of an entangled register.
  • Using Q# to understand superposition and entanglement.

In this sample, you can use Q# to prepare qubits in an entangled state, and to check that measuring these qubits lets you win a game known as the CHSH game more often than you can without entanglement. This game helps us understand entanglement, and has even been used experimentally to help test that the universe really is quantum mechanical in nature.

Prerequisites

Running the Sample

This sample can be run in a number of different ways, depending on your preferred environment.

Visual Studio Code or the Command Line

At a terminal, run the following command:

dotnet run

Visual Studio 2019

Open the folder containing this sample in Visual Studio ("Open a local folder" from the Getting Started screen or "File → Open → Folder..." from the menu bar) and set CHSHGame.csproj as the startup project. Press Start in Visual Studio to run the sample.

Manifest

Further resources

Опубликовать ( 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