Building Quantum Software: A Developer's Guide will teach you the foundations of quantum computing, how to implement quantum computations, and when to take advantage of the benefits of quantum computing.
This repository contains additional resources for the book .
Start by cloning the repository:
git clone https://github.com/learnqc/code_plus- Next, create a virtual environment where you can run the code.
python -m venv bqs-env- Activate the new environment.
source bqs-env/bin/activate- Install the dependencies for the repository in the virtual environment.
pip install -r requirements.txtcd src
python -m panel serve experiments/combined.py --showcd src
python -m panel serve experiments/single_qubit.py --showcd src
python -m panel serve experiments/any_qubit.py --showCreate a .env file in src with OPENAI_API_KEY and SINGLE_QUBIT_ASSISTANT_ID as variables:
OPENAI_API_KEY=
SINGLE_QUBIT_ASSISTANT_ID=Use your OpenAI API Key (see https://platform.openai.com/api-keys) to populate the OPENAI_API_KEY variable in the .env file:
OPENAI_API_KEY=...Create an OpenAI Assistant equipped with the single qubit circuit tools: in src:
python ./openai_assistant/single_qubit/assistant_setup.pyCopy the assistant id from the terminal log:
Assistant(id='...', created_at(or from your OpenAI list of assistants) and use it to populate the SINGLE_QUBIT_ASSISTANT_ID variable in the .env file:
SINGLE_QUBIT_ASSISTANT_ID=...single_qubit_browser.mp4
In src:
python -m panel serve ./openai_assistant/single_qubit/single_qubit_panel_assistant.py --showIn src:
python ./openai_assistant/single_qubit/single_qubit_terminal_assistant.py



