Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.9 KB

File metadata and controls

40 lines (30 loc) · 1.9 KB
page_type languages products description
sample
qsharp
qdk
This sample shows how to use synthesis techniques to implement arbitrary quantum oracles in Q#.

Oracle Synthesis

This sample shows the implementation of an arbitrary quantum oracle function using Hadamard gates, CNOT gates, and arbitrary Z-rotations. The algorithm is based on papers by N. Schuch and J. Siewert [Programmable networks for quantum algorithms, Phys. Rev. Lett. 91, 027902, 2003] and J. Welch, D. Greenbaum, S. Mostame, and A. Aspuru-Guzik [Efficient quantum circuits for diagonal unitaries without ancillas, New J. of Phys. 16, 033040, 2014].

This sample describes in detail the underlying concepts that were used to implement the following operations from the Q# Standard library:

Prerequisites

Running the Sample

To run the sample, use the dotnet run command from your terminal.

Manifest