This is a quantum algorithm that can be considered a simplified version of Draper's adder. This algorithm is described as a unitary operator
This state can also be defined for (signed) integer numbers using the two's complement notation.
The operator
This repository is organized as follows:
-
The file qiskit_quantum_fourier_transform.py contains a function that gives the QFT gate. As the filename says, this function uses Qiskit.
-
The file qiskit_reg_by_const_qft_adder.py has functions that gives Qiskit gates of the operators
$U_+(c)$ and$U_{\phi(+)}(c)$ . -
The file qiskit_reg_by_const_qft_adder_test.ipynb is a Jupyter notebook made for test the functions in qiskit_reg_by_const_qft_adder.py. This notebook contains the results of some tests.
-
The file numeric_systems.py has functions that convert natural numbers and integers into sequences of bits. These functions are used for testing.
-
The file test_tools.py contains functions that are used for testing.
This algorithm is described in detail in the paper "Quantum Algorithm based on Quantum Fourier Transform for Register-by-Constant Addition" (https://doi.org/10.48550/arXiv.2207.05309). If you use this algorithm in your research, please cite it as follows:
@misc{ferraz_22,
doi = {10.48550/ARXIV.2207.05309},
url = {https://arxiv.org/abs/2207.05309},
author = {Ferraz, Filipe Chagas},
keywords = {Quantum Physics (quant-ph), FOS: Physical sciences, FOS: Physical sciences},
title = {Quantum Algorithm based on Quantum Fourier Transform for Register-by-Constant Addition},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}