Installation¶
This guide covers different installation methods for the Quantum Pipeline framework.
Prerequisites¶
- Python: 3.10, 3.11, or 3.12
- Operating System: Linux (tested), macOS (untested, CPU only in theory), Windows (untested, via WSL2 in theory)
- Memory: Minimum 8 GB RAM (16 GB recommended)
- Optional: NVIDIA GPU with CUDA support for GPU acceleration
Installation Methods¶
Method 1: PyPI Package¶
Install the latest stable release from PyPI:
Verify the installation:
Method 2: From Source¶
Clone the repository and install in development mode:
# Clone the repository
git clone https://github.com/straightchlorine/quantum-pipeline.git
cd quantum-pipeline
# Install with PDM
pdm install
# Or install with pip
pip install -e .
Method 3: Docker¶
Pull pre-built images from Docker Hub:
GPU Prerequisites
For GPU support, you need:
- NVIDIA GPU with CUDA support
- NVIDIA Container Toolkit installed
- Docker configured with nvidia runtime
See GPU Acceleration Guide for setup instructions.
Method 4: Full Platform with Docker Compose¶
Deploy the complete data engineering platform:
# Clone repository
git clone https://github.com/straightchlorine/quantum-pipeline.git
cd quantum-pipeline
# Copy environment file
cp .env.thesis.example .env
# Edit .env with your configuration
# Start all services
docker compose up -d
This launches:
- Quantum Pipeline (CPU/GPU)
- Apache Kafka with Schema Registry
- Apache Spark cluster (master + workers)
- Apache Airflow (webserver, scheduler, triggerer)
- MinIO object storage
- PostgreSQL database
- Prometheus & Grafana monitoring (optional)
Service URLs
After starting, access web interfaces at:
- Airflow: http://localhost:8084
- Spark Master: http://localhost:8080
- MinIO Console: http://localhost:9001
- Grafana: http://localhost:3000 (if monitoring enabled)
See Docker Compose Guide for detailed configuration.
Verify Installation¶
After installation, verify everything works:
from quantum_pipeline.runners.vqe_runner import VQERunner
# Create runner instance
runner = VQERunner(
filepath='data/molecules.json',
basis_set='sto3g',
max_iterations=10,
optimizer='COBYLA'
)
print("Quantum Pipeline installed successfully.")
Optional Dependencies¶
Development Tools¶
For contributing or development:
This includes:
pytest- Testing frameworkdebugpy- Python debuggerruff- Fast Python linter
Documentation Tools¶
To build documentation locally:
View documentation at http://127.0.0.1:8000
Airflow Integration¶
For running data processing workflows:
Platform-Specific Notes¶
Linux¶
Quantum Pipeline is primarily developed and tested on Linux. All features are fully supported.
macOS¶
Not tested. Basic functionality should work in theory, but:
- GPU acceleration is not available (CUDA requires Linux/Windows)
Windows¶
Not tested. Support via WSL2 should work in theory:
- Install WSL2 with Ubuntu
- Install Docker Desktop with WSL2 backend
- Follow Linux installation instructions
Troubleshooting¶
Import Errors¶
If you encounter import errors:
# Ensure quantum_pipeline is in your Python path
export PYTHONPATH="${PYTHONPATH}:/path/to/quantum-pipeline"
# Or install in development mode
pip install -e .
Docker Issues¶
If Docker containers fail to start:
# Check Docker daemon is running
docker ps
# View logs for specific service
docker compose logs quantum-pipeline
# Restart all services
docker compose restart
See Troubleshooting Guide for more solutions.
Next Steps¶
- Quick Start Guide - Run your first VQE simulation
- Configuration Options - Customize your setup
- Docker Deployment - Deploy full platform