# Create
python -m venv .venv
# Activate
# Linux / macOS:
source .venv/bin/activate
# Windows PowerShell:
.venv\Scripts\Activate.ps1
# Windows CMD:
.venv\Scripts\activate.batpip install -r requirements.txtimport numpy as np
import scipy
import qiskit
print(f"NumPy: {np.__version__}")
print(f"SciPy: {scipy.__version__}")
print(f"Qiskit: {qiskit.__version__}")-
Install the QDK for VS Code:
- Open VS Code → Extensions → search for "Azure Quantum Development Kit" → Install.
- This provides Q# language support, syntax highlighting, and the Q# kernel for Jupyter.
-
Install the
qsharpPython package:pip install qsharp
-
Verify:
import qsharp print(qsharp.__version__)
- Install the .NET 8 SDK.
- Install the QDK project templates:
dotnet new install Microsoft.Quantum.ProjectTemplates
- Navigate to the
qsharp/folder and build:cd qsharp dotnet build
# From the repository root
jupyter lab notebooks/Open notebooks in numerical order (01 → 10) for the intended learning progression.
| Issue | Solution |
|---|---|
ModuleNotFoundError: No module named 'qiskit' |
Run pip install -r requirements.txt inside your virtual environment |
| Qiskit version conflicts | Use pip install --upgrade qiskit qiskit-aer qiskit-algorithms |
| Q# kernel not showing in Jupyter | Install qsharp package: pip install qsharp and restart Jupyter |
| Matplotlib plots not rendering | Ensure %matplotlib inline is at the top of each notebook |
| Large matrix computations are slow | Notebooks with n > 12 qubits require significant RAM; reduce n if needed |