QNLP  v1.0
bin_into_superpos.hpp File Reference

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>
Include dependency graph for bin_into_superpos.hpp:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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. *.

Author
Myles Doyle (myles.nosp@m..doy.nosp@m.le@ic.nosp@m.hec..nosp@m.ie)
Version
0.1
Date
2019-29-06

Definition in file bin_into_superpos.hpp.

Macro Definition Documentation

◆ IS_SET

#define IS_SET (   byte,
  bit 
)

Checks if the bit'th bit of the integer byte is set.

Parameters
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.