We recommend creating a new virtual environment and Jupyter notebook kernel to avoid conflicts with existing packages like qutip
.
- Create a new virtual environment (using conda):
conda create -n qDNA
- Create a new Jupyter kernel (if you are using Jupyter notebook):
ipykernel install --name qDNA --display-name "Python (qDNA)"
- Install the qDNA package:
pip install qDNA
If you want to make changes to the source code or try the example notebooks, you can clone the project's GitHub repository.
NOTE: These set-up instructions have only been tested on Windows and may not work on macOS.
- Conda (Download Anaconda or Download Miniconda)
- Git (Download)
- Python (Download)
Open the Anconda Powershell Prompt. Copy and execute the following commands
.
- Clone the Github repository:
git clone https://github.com/dehe1011/QuantumDNA.git
- Navigate to the project directory:
cd QuantumDNA
- Create and active a virtual environment (using a provided script):
powershell -ExecutionPolicy Bypass -File tools/scripts/activate.ps1
If all tests passed, the package has been successfully installed, and the user interface opens automatically. You can access all the implemented functionalities. Enjoy!
After installing the package, you can access the code via the user interface or in a Jupyter Notebook.
Using the User Interface:
- Open the Anaconda PowerShell Prompt and navigate to the package directory:
Set-Location -Path "C:\Users\<YourUsername>\QuantumDNA
- Run the activation script:
powershell -ExecutionPolicy Bypass -File tools/scripts/activate.ps1
Using Jupyter Notebook:
- Open a new Jupyter Notebook:
jupyter notebook
- Select the kernel "Python (qDNA)":
- In the Jupyter Notebook interface, go to Kernel > Change kernel > Python (qDNA)
To remove the virtual environment and Jupyter kernel:
- Remove the virtual environment:
conda remove --name qDNA --all
- Remove the Jupyter kernel:
jupyter kernelspec remove qDNA
- Delete the project folder:
- Manually delete the
QuantumDNA
folder that contains the cloned GitHub repository.
- Manually delete the