|
QNLP
v1.0
|
Defines class which introduces routines for encoding binary numbers represented as unsigned integers into a superposition of quantum states. The amplitude of each state will be even. The method used follows the approach outlined in the paper https://arxiv.org/abs/quant-ph/0210176v2 by C. A. Trugenberger. *. More...
#include <cassert>#include <utility>#include <memory>#include <cmath>#include <vector>#include <complex>#include <iostream>

Go to the source code of this file.
Data Structures | |
| class | QNLP::EncodeBinIntoSuperpos< SimulatorType > |
| Definition of class to encode a binary string represented by an integer into a superposition of states. More... | |
Namespaces | |
| QNLP | |
Macros | |
| #define | IS_SET(byte, bit) |
| Checks if the bit'th bit of the integer byte is set. More... | |
Defines class which introduces routines for encoding binary numbers represented as unsigned integers into a superposition of quantum states. The amplitude of each state will be even. The method used follows the approach outlined in the paper https://arxiv.org/abs/quant-ph/0210176v2 by C. A. Trugenberger. *.
Definition in file bin_into_superpos.hpp.
| #define IS_SET | ( | byte, | |
| bit | |||
| ) |
Checks if the bit'th bit of the integer byte is set.
| byte | - integer representing a binary string |
| bit | - the index of the bit to be checked (beginning with the least significant bit) |
Definition at line 28 of file bin_into_superpos.hpp.