QM Workshop Environment Setup (with uv)
This guide sets up a Python 3.11 environment with the required QM packages using uv.
🐧 macOS / Linux
- Install
uv
curl -LsSf https://astral.sh/uv/install.sh | sh- Create project and environment
mkdir qm-workshop
cd qm-workshop
uv python install 3.11
uv venv qmenv --python 3.11
source qmenv/bin/activate- Install dependencies
uv pip install --prerelease=allow qm-qua==1.2.6 qualang-tools==0.21.1 qm-saas==1.1.7🪟 Windows (PowerShell)
- Install
uv
irm https://astral.sh/uv/install.ps1 | iex
⚠️ Close and reopen PowerShell after installation
- Create project and environment
mkdir qm-workshop
cd qm-workshop
uv python install 3.11
uv venv qmenv --python 3.11
qmenv\Scripts\Activate.ps1- Install dependencies
uv pip install --prerelease=allow qm-qua==1.2.6 qualang-tools==0.21.1 qm-saas==1.1.7Set-ExecutionPolicy -Scope CurrentUser RemoteSignedThen retry:
qmenv\Scripts\Activate.ps1✅ Verify Installation
python --versionExpected:
Python 3.11.x
Check packages:
pip list💡 Notes
The environment is isolated (qmenv)
uv is used for faster installs and better dependency resolution
--prerelease=allow ensures compatibility with QM packages
🧹 Optional: Deactivate Environment
deactivate