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

Latest commit

 

History

History
66 lines (49 loc) · 1.9 KB

File metadata and controls

66 lines (49 loc) · 1.9 KB
page_type languages products description jupyter
sample
qsharp
python
csharp
qdk
This sample shows how to use Q# to decompose reversible logic into quantum operations.
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

Reversible Logic Synthesis

This sample demonstrates:

  • How to use Q# to decompose permutations into quantum operations.
  • How to apply decomposed permutations in algorithms such as hidden shift.

Prerequisites

Running the Sample

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

Python in Visual Studio Code or the Command Line

At a terminal, run the following command:

python host.py

Q# in Visual Studio Code or the Command Line

At a terminal, run the following command:

dotnet run

Q# in 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 ReversibleLogicSynthesis.csproj as the startup project. Press Start in Visual Studio to run the sample.

Manifest