Installation¶
This guide will help you install QSCI and all its dependencies.
Prerequisites¶
- Python 3.9 or higher
- pip or uv package manager
- Git (for development installation)
Quick Installation¶
Using pip¶
Using uv (Recommended)¶
Development Installation¶
For development or to get the latest features:
1. Clone the Repository¶
2. Create Virtual Environment¶
3. Install Dependencies¶
Dependencies¶
QSCI depends on the following packages:
Core Dependencies¶
- quri-parts: Quantum circuit and operator manipulation
- numpy: Numerical computations
- scipy: Sparse matrix operations and linear algebra
Optional Dependencies¶
- quri-algo: Time evolution and algorithm interfaces
- qulacs: High-performance quantum circuit simulator
- pyscf: Quantum chemistry calculations (for molecular examples)
Development Dependencies¶
- pytest: Testing framework
- mkdocs: Documentation generation
Verification¶
Verify your installation by running:
import src.qsci_algorithms as qsci
from quri_parts.core.operator import Operator, pauli_label
# Create a simple Hamiltonian
hamiltonian = Operator()
hamiltonian += Operator({pauli_label("Z0"): -1.0})
hamiltonian += Operator({pauli_label("Z1"): -1.0})
print("QSCI installation successful!")
print(f"Hamiltonian: {hamiltonian}")
Optional: Quantum Chemistry Support¶
For molecular examples and PySCF integration:
This enables:
- Molecular Hamiltonian generation
- STO-3G and other basis sets
- H2, H6 molecular examples
For Configuration Interaction calcualtions, we recommend pyCI
Getting Help¶
If you encounter issues:
- Check the FAQ
- Search existing GitHub issues
- Create a new issue with:
- Python version
- Operating system
- Complete error message
- Minimal reproduction example
Next Steps¶
Once installed, continue to:
- Quick Start: Run your first QSCI calculation
- Examples: Explore practical examples
- API Reference: Dive into the technical details