Curiosity Corner

Getting Started with Quantum Computing Research – Building a Quantum Cipher – Part 1

This will be a guide for users of Windows (10 or above) who wish to tap into quantum research frameworks quickly and easily. These same tools can be easily used in Linux or on MacOS with only slight adaptations. I’ll start from the beginning with you and breakdown simple concepts behind Python and how virtual environments work, then I’ll delve into how you can install Qiskit and use Jupyter notebooks to keep your projects and experiments organized. I’ll also go into how you can use VS Code to include AI in your coding processes seamlessly.

My goal is to give you both the access and ability to innovate in an upcoming field, something that is often plagued with gatekeeping and barriers to entry. All information I share and discuss is publicly available online for those willing to research and find it. I’m just presenting it in a format to help you get to the experimentation more quickly and easily.

In this guide, we will be creating a virtual environment and using Qiskit to emulate a quantum computer in order to run code that creates a cipher and ciphertext in a superposition state.

Now, we have to go through steps to get to that goal. We will do it together. I will be covering a lot of topics that touch on quantum computing concepts and quantum cryptography before we can do the final experiment.

Step 1: Download the current stable release of Python

What is Python in this context? Python is the programming language you’ll use to run Qiskit and other tools, and a virtual environment (venv) is an isolated workspace that keeps your project’s Python packages separate from the system Python, preventing conflicts and making experiments reproducible.

Step 2: Create your project folder

Step 3: Use Powershell to complete your Setup

  • Verify that your Python installation was successful
  • Create your virtual environment (venv)
    • Run: python -m venv .venv_superposition_ciphertext
  • Activate the virtual environment you just created
    • You should see green text appear in front of your command line in powershell, showing that the virtual environment is now active:
  • Create a text file for your project virtual environment dependencies
    • All of the required dependencies should now install without error

Step 4: Jupyter Notebook

  • This should open a browser with a loopback address, pointing to the Jupyter web interface, displaying your project contents inside.
  • Close the browser window after verifying it loads properly.

Step 5: Install VS Code

  • Navigate to:
  • https://code.visualstudio.com/docs/setup/windows
  • Follow the instructions and download VS Code. Make sure you choose to install Git and other options if desired.
  • Open VS Code and configure and link your Github account if desired.

VS Code can use AI to help you code directly in VS Code. It’s incredibly useful and time saving if you grasp the conceptual framework behind most programming languages. Memorizing syntax has never been my strength, personally, and thankfully quantum computing leans heavily into conceptual frameworks. So, for all of us physics and quantum mechanics nerds: It’s finally our time to shine!

With our setup ready and the conceptual groundwork in place, we’re ready to dive in. In Part 2, we’ll explore how to use the tools we’ve installed and introduce the foundational ideas behind quantum programming.

References

Download Python : https://www.python.org/downloads/

Qiskit SDK information : https://pypi.org/project/qiskit/

IBM Qiskit Installation guide and extended information : https://quantum.cloud.ibm.com/docs/en/guides/install-qiskit

VS Code Information : https://code.visualstudio.com/docs/setup/setup-overview

Leave a Reply

Your email address will not be published. Required fields are marked *