├── explanation
└── math.pdf
├── src
├── rand.h
├── QuantumComputerSimulator.h
├── types.h
├── methods.h
├── rand.cpp
├── qalgorithms.h
├── unitary.h
├── quantum.h
├── methods.cpp
├── unitary.cpp
├── test.cpp
├── quantum.cpp
└── qalgorithms.cpp
├── PythonImplementation
├── README.md
├── example2.py
├── example0.py
├── example1.py
└── QuantumSimulator
│ ├── gates.py
│ └── register.py
├── LICENSE
└── README.md
/explanation/math.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jtiosue/Quantum-Computer-Simulator-with-Algorithms/HEAD/explanation/math.pdf
--------------------------------------------------------------------------------
/src/rand.h:
--------------------------------------------------------------------------------
1 | #ifndef RAND_INCLUDE
2 | #define RAND_INCLUDE
3 |
4 | double get_rand(); // double between 0.0 and 1.0.
5 |
6 | #endif
--------------------------------------------------------------------------------
/PythonImplementation/README.md:
--------------------------------------------------------------------------------
1 | To see a (maybe) better Python implementation, please see my other repository qSonify
2 |
--------------------------------------------------------------------------------
/src/QuantumComputerSimulator.h:
--------------------------------------------------------------------------------
1 | #ifndef QUANTUMCOMPUTERSIMULATOR_INCLUDE
2 | #define QUANTUMCOMPUTERSIMULATOR_INCLUDE
3 |
4 | #include "types.h"
5 | #include "methods.h"
6 | #include "unitary.h"
7 | #include "rand.h"
8 | #include "quantum.h"
9 | #include "qalgorithms.h"
10 |
11 | #endif
--------------------------------------------------------------------------------
/src/types.h:
--------------------------------------------------------------------------------
1 | #ifndef TYPES_INCLUDE
2 | #define TYPES_INCLUDE
3 |
4 | #include