Installation
This guide covers installing the QCOS Python SDK, CLI, and configuring API access.
Note: This site is the public QCOS documentation for customers (SDK/CLI/API + licensing). Internal engineering documentation is maintained separately and is not published here.
System Requirementsβ
- Python: 3.9 or higher
- Operating Systems: Linux, macOS, Windows
- Dependencies: Automatically installed
Python SDK Installationβ
Using pip (Recommended)β
pip install softqcos-sdk
Using Poetryβ
poetry add softqcos-sdk
Using Condaβ
conda install -c softquantus softqcos-sdk
From Sourceβ
git clone https://github.com/roytmanpiccoli/softqcos_core.git
cd softqcos_core
pip install -e ./softqcos-sdk
If you want to develop the QCOS core library (not the SDK), install from the repo root:
pip install -e ".[dev,test]"
CLI Installationβ
The QCOS CLI is included with the SDK but can also be installed separately:
pip install softqcos-cli
Verify installation:
softqcos --version
# QCOS CLI v1.0.0
Optional Dependenciesβ
Install additional packages for specific features:
# Qiskit integration
pip install softqcos-sdk[qiskit]
# Cirq integration
pip install softqcos-sdk[cirq]
# All integrations
pip install softqcos-sdk[all]
# Development tools
pip install softqcos-sdk[dev]
Docker Installationβ
For containerized environments:
docker pull qcosregistry.azurecr.io/softqcos-sdk:latest
docker run -it --rm \
-e QCOS_API_KEY=your-api-key \
qcosregistry.azurecr.io/softqcos-sdk:latest \
python -c "from softqcos_sdk import QCOSClient; print('Ready!')"
Jupyter Notebookβ
Install with Jupyter support:
pip install softqcos-sdk[jupyter]
Then in your notebook:
from softqcos_sdk import QCOSClient
from softqcos.visualization import plot_histogram
client = QCOSClient()
result = client.execute(circuit, shots=1024)
plot_histogram(result.counts)
Verifying Installationβ
Test SDKβ
import softqcos_sdk
print(softqcos_sdk.__version__)
# Test connection
from softqcos_sdk import QCOSClient
client = QCOSClient(api_key="your-api-key")
print(client.health())
# {'status': 'healthy', 'version': '1.0.0'}
Test CLIβ
softqcos health
# β API Gateway: healthy
# β Queue Service: connected
# β GPU Workers: 8 available
Environment Variablesβ
Configure QCOS using environment variables:
# Required
export QCOS_API_KEY="your-api-key"
# Optional
export QCOS_API_URL="https://api.softquantus.com"
export QCOS_TIMEOUT=30
export QCOS_MAX_RETRIES=3
export QCOS_LOG_LEVEL="INFO"
Or use a .env file:
# .env
QCOS_API_KEY=your-api-key
QCOS_API_URL=https://api.softquantus.com
IDE Integrationβ
VS Codeβ
Install the QCOS extension for syntax highlighting and autocomplete:
code --install-extension softquantus.softqcos-vscode
PyCharmβ
Add QCOS stubs for better autocomplete:
pip install softqcos-stubs
Troubleshootingβ
SSL Certificate Errorsβ
# Update certificates
pip install --upgrade certifi
Connection Timeoutβ
Check your network and proxy settings:
export HTTPS_PROXY=http://your-proxy:8080
Import Errorsβ
Ensure you have the correct Python version:
python --version # Should be 3.9+
Next Stepsβ
- Authentication - Get your API key
- First Circuit - Run your first quantum circuit
- SDK Quickstart - Learn the Python SDK