Installation
Requirements
Section titled “Requirements”- Python 3.11+ (Required)
- Minimum 4GB RAM
- No GPU required for mock mode
- Optional: IonQ API key for real quantum backend (get from cloud.ionq.com)
- Optional: Pinecone API key for vector storage (get from pinecone.io)
Quick Install (Mock Mode)
Section titled “Quick Install (Mock Mode)”Start immediately with mock mode - no API keys needed:
git clone https://github.com/yucelz/q-store.gitcd q-storepip install -e .Mock mode provides instant execution for development and testing (10-20% accuracy).
Installation Options
Section titled “Installation Options”Basic Installation
Section titled “Basic Installation”pip install -e .With PyTorch Support
Section titled “With PyTorch Support”For hybrid quantum-classical ML with PyTorch integration:
pip install -e ".[torch]"With TensorFlow Support
Section titled “With TensorFlow Support”For TensorFlow integration:
pip install -e ".[tensorflow]"Full Development Installation
Section titled “Full Development Installation”Complete toolchain with all dependencies:
pip install -e ".[dev,backends,all]"API Key Configuration (Optional)
Section titled “API Key Configuration (Optional)”API keys are only needed when using real quantum backends (--no-mock flag).
Create a .env file in the project root:
# IonQ Quantum Backend (optional)IONQ_API_KEY=your_ionq_api_key
# Pinecone Vector Database (optional)PINECONE_API_KEY=your_pinecone_api_keyPINECONE_ENVIRONMENT=us-east-1Setup IonQ Access (Optional)
Section titled “Setup IonQ Access (Optional)”For real quantum hardware/simulator (60-75% accuracy):
- Sign up at cloud.ionq.com
- Generate an API key
- Add to
.envfile:
IONQ_API_KEY=your-api-key-hereOr configure in code:
from q_store import DatabaseConfig
config = DatabaseConfig( quantum_sdk='ionq', ionq_api_key='your-api-key-here', quantum_target='simulator' # or 'qpu' for real hardware)Setup Pinecone (Optional)
Section titled “Setup Pinecone (Optional)”For persistent vector storage:
- Sign up at pinecone.io
- Create an index (dimension: 768+, metric: cosine)
- Add to
.envfile:
PINECONE_API_KEY=your-pinecone-keyPINECONE_ENVIRONMENT=us-east-1Or configure in code:
from q_store import DatabaseConfig
config = DatabaseConfig( pinecone_api_key='your-pinecone-key', pinecone_environment='us-east-1', pinecone_index='quantum-vectors')Verify Installation
Section titled “Verify Installation”Test your installation:
python -c "from q_store import QuantumCircuit; print('✓ Q-Store installed')"Run a basic example:
# Mock mode (no setup required)python examples/basic_usage.pyTroubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Python Version Error
Q-Store requires Python 3.11 or higher:
python --version # Should show 3.11+Upgrade Python if needed:
# Ubuntu/Debiansudo apt update && sudo apt install python3.11
# macOS with Homebrewbrew install python@3.11ImportError: No module named ‘q_store’
Ensure you’re in the q-store directory:
cd q-storepip install -e .IonQ Authentication Error
Verify your API key:
- Check
.envfile exists and has correct key - Verify key is active at cloud.ionq.com
- Ensure no extra spaces in
.envfile
Pinecone Connection Error
Check your configuration:
- Verify API key and environment in
.env - Ensure index exists and dimension matches (768+)
- Check metric is set to ‘cosine’
Mock Mode Accuracy Warning
Mock mode provides 10-20% accuracy for testing only. For production:
- Use IonQ backend for 60-75% accuracy
- Consider cost vs. performance tradeoffs
Running Examples
Section titled “Running Examples”Mock Mode (Free, Instant)
Section titled “Mock Mode (Free, Instant)”# Basic quantum circuitpython examples/basic_usage.py
# PyTorch hybrid modelpython examples/pytorch/fashion_mnist.py --samples 500 --epochs 2
# Database operationspython examples/database_demo.pyReal Quantum Backend
Section titled “Real Quantum Backend”Requires IonQ and Pinecone API keys in .env:
# Use real quantum hardware/simulatorpython examples/pytorch/fashion_mnist.py --no-mock --samples 100 --epochs 2Upgrading from v3.x
Section titled “Upgrading from v3.x”If upgrading from Q-Store v3.x:
-
Uninstall old version:
Terminal window pip uninstall q-store -
Install v4.0.0:
Terminal window git clone https://github.com/yucelz/q-store.gitcd q-storepip install -e . -
Update imports:
# Old (v3.x)from quantum_db import QuantumDatabase# New (v4.0.0)from q_store import QuantumDatabase, DatabaseConfig -
Review breaking changes:
- See v4.0 Release Notes for migration guide
Next Steps
Section titled “Next Steps”- Quick Start Guide - Get started in 5 minutes
- v4.0 Release Notes - What’s new
- Example Projects - Complete examples
- IonQ Integration - Real quantum backend setup