Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (32 loc) · 1.58 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.58 KB
page_type author description ms.author ms.date languages products
sample
cgranade
Run quantum teleportation on hardware, using the Azure Quantum service
01/25/2021
qsharp
qdk
azure-quantum

Quantum teleportation sample

This sample demonstrates how to use Q# and the Azure Quantum service together to teleport quantum data within a device.

This sample is implemented as a standalone executable, such that no C# or Python host is needed.

Running the sample on a local simulator

dotnet run -- --simulator QuantumSimulator --prep-basis PauliX --meas-basis PauliX

Running the sample on the Azure Quantum service

Make sure that you have created and selected a quantum workspace, and then run the following at the command line, substituting TARGET with the target that you would like to run against (e.g.: quantinuum.qpu.h1).

az quantum execute --target-id TARGET -- --prep-basis PauliX --meas-basis PauliX

⚠ NOTE: In order to run this sample, the target must support comparing measurement results.

For a full list of available quantum computing targets, run:

az quantum target list --output table

Manifest