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

Latest commit

 

History

History
30 lines (22 loc) · 1.01 KB

File metadata and controls

30 lines (22 loc) · 1.01 KB

page_type: sample languages:

  • qsharp products:
  • qdk description: "This sample uses Q# to factor integers with Shor's algorithm." urlFragment: quantum-adders

Quantum adders

This sample shows how to add two integers using the arithmetic functionality in the Q# standard library. Two examples of adders implemented in this sample are that of Takahashi et al. and Cuccaro et al..

Running the Sample

To run this sample, you will need Jupyter Notebook and the IQ# kernel. For instructions on how to set up these tools see the getting started guide. To start the Jupyter Notebook use the following command in this directory.

jupyter notebook AdderExample.ipynb

Use the Run button to walk through the notebook line by line.

Manifest

  • AdderExample.ipynb: Jupyter Notebook with Q# code implementing a couple of quantum adders.