This method is from the paper https://arxiv.org/pdf/2404.14858. For a detailed explanation, you can refer to the paper.
The virtual environment can isolate dependencies and prevent version conflicts of dependencies between different projects. It ensures that the installed packages and libraries are exclusively used by this project, avoiding effects on other projects.
Refer to the following links about how to create virtual environment:
Clone the mRNA codon optimization from Github:
git clone https://github.com/QTank/mRNACodonOpt.git
Note: make sure Git is installed git before cloning the code.
pip install -r requirement.txt
Note: make sure that pip is installed before running this command.
Navigate to the solution folder where the optimization files are located:
-
Dense Encoding way (solution.py)
Use dense encoding way to optimize mRNA codons on quantum computing simulation in Qiskit
-
One-Hot Encoding way (solution_one_hot.py) Uses one-hot encoding way to optimize mRNA codons on quantum computing simulation in Qiskit
-
Exact Value optimization ('solution_exact.py') Uses brute force to compute the exact value of the Hamiltonian for mRNA codon optimization