page_type | author | description | ms.author | ms.date | languages | products | |||
---|---|---|---|---|---|---|---|---|---|
sample |
cgranade |
Run quantum teleportation on hardware, using the Azure Quantum service |
chgranad@microsoft.com |
01/25/2021 |
|
|
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.
dotnet run -- --simulator QuantumSimulator --prep-basis PauliX --meas-basis PauliX
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
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )