-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
64 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Python Implementation of ISA | ||
|
||
- **`qc.py`**: This file defines the Gate class and how rotations and CX gates are applied to quantum states. Gates are validated by qiskit's statevector simulator. | ||
- **`sp3_extension`**: This file implements 3-qubit state preparation, which is the base case for 2-bit patterns (k=2). | ||
- **`parser.py`**: This file defines function to extract state from properly formatted text file. | ||
- **`util.py`**: This file contains more helpers. | ||
- **`isa.py`**: This file implements the enumeration of patterns and iterative merging step. It combines files in folder to define isa.prepare() which outputs same gate sequence as C++ executable. | ||
- **`py_demo.py`** This script runs isa.prepare() and outputs the ISA gate sequence. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# ISA, AA-VQC, and ADAPT-VQE Implementations | ||
|
||
## Iterated Sparse Approximation Files | ||
- **`isa_main.cpp/hpp`**: This is the main script for running the ISA algorithm. | ||
- **`simulator.cpp/hpp`**: This file contains functions for simulating the application of quantum gates to quantum states. | ||
- **`state_tracker.cpp/hpp`**: This file is a wrapper around **`simulator.cpp/hpp`** and implements the iterative merging step for ISA. | ||
- **`sp3.cpp/hpp`**: This file implements 3-qubit state preparation, which is the base case for 2-bit patterns (k=2). | ||
- **`greedy.cpp/hpp`**: This file implements ISA for k=1. | ||
- **`greedy3.cpp/hpp`**: This file implements ISA for k=2. | ||
- **`pattern.cpp/hpp`**: This file implements the pattern data structure. | ||
|
||
## Alternating Ansatz - Variational Quantum Circuit Files | ||
- **`vqc.cpp/hpp`**: This file implements gradient descent for AA-VQC based on this paper: https://arxiv.org/abs/2011.06258. | ||
- **`vqc_main.cpp/hpp`**: This is the main script for running the AA-VQC algorithm. | ||
|
||
## Adaptive Derivative-Assembled Pseudo-Trotter ansatz Variational Quantum Ei gensolver Files | ||
- **`search.cpp/hpp`**: This file implements ADAPT-VQE based on this paper: https://www.nature.com/articles/s41467-019-10988-2. | ||
- **`search_main.cpp/hpp`**: This is the main script for running the ADAPT-VQE algorithm. | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Data and Logs | ||
|
||
- [**Protein_Results/**](./Protein_Results) contains text files for metrics of protein experiments for each of the QSP methods. | ||
- [**Protein_states_100/**](./Protein_states_100) contains 100 text files storing the protein-encoded quantum states generated by **protein.exp/uniprot.py**. | ||
- [**Plots/**](./Plots) contains plots for the noisy simulation experiments. | ||
- **`output.txt`**: This text file is a sampled output gate sequence from ISA. | ||
- **`state.txt`**: This text file is a randomly sampled 5-qubit state. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters