SAGUARO is a hybrid Python/C++ system. It relies on a Native C++ Extension (saguaro_core.so) for quantum operations and holographic indexing.
Important
Production vs. Development For most users, we recommend the Development Install to build the native ops locally for your specific hardware (AVX2/AVX512 optimizations).
- Operating System: Linux (Ubuntu 22.04 / 24.04 LTS recommended)
- Python: Version 3.12+
- Compiler: C++17 compliant (GCC 11+ or Clang 14+)
- Build Tools:
cmake,make,ninja-build(optional but faster)
git clone https://github.com/VersoIndustries/Saguaro.git
cd Saguarosudo apt update
sudo apt install cmake build-essential python3.12-dev python3.12-venvWe strongly recommend a dedicated virtual environment to avoid conflicts with system packages.
python3.12 -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools wheelThere are two ways to install Saguaro:
This builds the native extension in-place and links the Python package foundation.
# Install strict dependencies
pip install -r requirements.txt
# Build Native Ops and install in editable mode
pip install -e .Note: The setup.py script automatically invokes CMake to compile saguaro/native.
If you encounter issues with the native build, verification scripts are available:
# Verify Native Ops loading
python3 -c "import saguaro.native; print('Native Ops Loaded Successfully')"This usually means your venv is picking up an older libstdc++ or the compiler used for Python differs from your validation compiler.
Fix: Ensure CC and CXX environment variables point to your modern GCC.
export CC=/usr/bin/gcc-13
export CXX=/usr/bin/g++-13
pip install -e . --force-reinstallSaguaro uses TensorFlow for graph execution of quantum ops. Ensure it is installed:
pip install tensorflow