From 29128acbb80adb9f1799dbd1ef1350f1cb203f8b Mon Sep 17 00:00:00 2001 From: Spencer Churchill <25377399+splch@users.noreply.github.com> Date: Wed, 18 Feb 2026 08:53:34 -0800 Subject: [PATCH] Update Dockerfile and dependencies for CUDA compatibility; remove environment.yml --- Dockerfile | 6 +++--- README.md | 5 ----- environment.yml | 24 ------------------------ pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 33 deletions(-) delete mode 100644 environment.yml diff --git a/Dockerfile b/Dockerfile index 8e21e8d..ff19a8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.13-slim +FROM --platform=linux/amd64 python:3.12-slim WORKDIR /workspace @@ -14,8 +14,8 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv # Copy project files COPY . . -# Install dependencies -RUN uv pip install --system -e . +# Install dependencies (dynamic deps need pip) +RUN uv pip install --system . && pip install cudaq EXPOSE 8888 diff --git a/README.md b/README.md index 6de9c53..563cd73 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,6 @@ curl -LsSf https://astral.sh/uv/install.sh | sh uv pip install -e . ``` -**Using conda:** -```bash -conda env create -f environment.yml -``` - ### Running Notebooks **Jupyter:** diff --git a/environment.yml b/environment.yml deleted file mode 100644 index e8fd3ed..0000000 --- a/environment.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: myenv -channels: - - conda-forge - - defaults -dependencies: - - python=3.13 - - pip - - jupyter - - pytest - - nbconvert - # Add other dependencies here, for Conda packages. - - pip: - # Pip-only packages here, if any. - - qiskit[visualization] - - qiskit-ionq - - cirq - - cirq-ionq - - pennylane - - pennylane-ionq - - projectq - - cudaq - - pylatexenc - - requests - - ipykernel diff --git a/pyproject.toml b/pyproject.toml index f74c90e..049dd55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ "cirq-ionq>=1.0.0", "pennylane>=0.30.0", "pennylane-ionq>=0.30.0", - "projectq>=0.8.0", + # "projectq>=0.8.0", # fails to build on Python 3.12+ "cudaq>=0.6.0", # Visualization and utilities