https://github.com/banrovegrie/soup
Creating Arbitrary Superpositions
https://github.com/banrovegrie/soup
Last synced: about 2 months ago
JSON representation
Creating Arbitrary Superpositions
- Host: GitHub
- URL: https://github.com/banrovegrie/soup
- Owner: banrovegrie
- Created: 2021-09-11T15:16:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-28T21:42:21.000Z (over 3 years ago)
- Last Synced: 2025-01-18T11:44:24.969Z (3 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 448 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### About
We design a general circuit that accepts vectors with random values of size n with m bits in length for each element and finds the state(s) such that it is the superposition of indices such that vector elements at those indices have a binary representation with every two adjacent bits having different values.### Contents
- Explanation of my algorithm
- Explanation of another algorithm (Shende et al.)
- code
- Python Notebook implementation
- Python program
- Tests### Instructions
1. Install `cirq`, incase not already installed.
2. To find the required superposition state for any input vector, i.e., solve the general problem.
```
python main.py
```
3. To test the program, run the `test.py` file. It doesn't involve proving any imputs.