-
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
3 changed files
with
35 additions
and
5 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,31 @@ | ||
# RNA to DNA using quantum circuits | ||
|
||
This is a simple circuit to transcribe a RNA to a DNA using quantum computing | ||
|
||
## How it works? | ||
|
||
the bases are encoding in two different basis in the Bloch sphere | ||
|
||
$C$ and $G$ are encoded in the computational basis using the $X$ gate, while the $A$ and $U$ encoded in the Hadamard basis using the $H$ gate. | ||
|
||
With this protocol, we insert the input RNA as gates in the cirucit, and the we rotate by $\pi$ using the $RY$ to get the relative base for the DNA. | ||
|
||
![example](./example.png) | ||
|
||
After that, we have encoded values in two different basis. To get the relative DNA bases, are used measurements on both $Z$ and $X$, and the values pos-processed by a classical algorithm. | ||
|
||
## How to use? | ||
|
||
To check the project out, you may need to install some dependencies by running: | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
|
||
# or with conda | ||
|
||
conda deactivate | ||
conda env create -f environment.yml | ||
conda activate dna-quantum | ||
``` | ||
|
||
Then, you can check the [example.ipynb](./example.ipynb) or the functions source code at [transcode.py](./transcode.py). |