page_type | author | description | ms.author | ms.date | languages | products | ||||
---|---|---|---|---|---|---|---|---|---|---|
sample |
cgranade |
Find hidden shifts in Boolean functions, using the Azure Quantum service |
chgranad@microsoft.com |
01/25/2021 |
|
|
This sample demonstrates how to use Q# and Azure Quantum together to learn the hidden shift of bent functions.
This sample is implemented as a standalone executable, such that no C# or Python host is needed.
The program takes one command-line option, --n-qubits
, to control the number of qubits used to sample a random number.
dotnet run -- --simulator QuantumSimulator --pattern-int 6 --register-size 3
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.: ionq.qpu
or quantinuum.qpu.h1
):
az quantum execute --target-id TARGET -- --pattern-int 6 --register-size 3
For a full list of available quantum computing targets, run:
az quantum target list --output table
This sample makes use of paid services on Azure Quantum. The cost of running this sample with the provided parameters on IonQ in a Pay-As-You-Go subscription is approximately $1-$2 USD (or the equivalent amount in your local currency). This quantity is only an approximate estimate and should not be used as a binding reference. The cost of the service might vary depending on your region, demand and other factors.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )