2

I have programmed in C++, but I am interested in writing quantum programs. I have some experience with Microsoft's Q#, and I know about the canonical Shor's and Grover's algorithms.

Can anyone tell me how to write a quantum program to add two integers?

Mithrandir24601
  • 3,796
  • 3
  • 24
  • 45
quantomm
  • 31
  • 1

1 Answers1

4

You will need quantum circuits called adders.

You have for example one from Cuccaro et al. and another from Himanshu et al.

Sanchayan Dutta
  • 17,945
  • 8
  • 50
  • 112
cnada
  • 4,802
  • 1
  • 9
  • 22