Skip to content

Latest commit

 

History

History
 
 

DatabaseSearch

Database Search Sample

This sample walks through Grover's search algorithm. Oracles implementing the database are explicitly constructed together with all steps of the algorithm. This features two examples -- the first implements the steps of Grover's algorithm manually. The second applies amplitude amplification functions in the canon to automate many steps of the implementation.

Running the Sample in Visual Studio

Open the QsharpSamples.sln solution in Visual Studio and set the .csproj file in the manifest as the startup project. Press Start in Visual Studio to run the sample.

Running the Sample in Jupyter Notebook

This sample can also be viewed using Jupyter Notebook. To do so, ensure that you have the IQ# kernel installed using the instructions in the getting started guide. Then, start a new Jupyter Notebook session from this directory:

cd Samples/src/DatabaseSearch
jupyter notebook

Manifest