forked from sandbox-quantum/Tangelo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·42 lines (34 loc) · 1.55 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM fedora:30
# Fundamentals
# ============
RUN dnf -y update
RUN dnf -y install wget libgomp openblas-devel pandoc
RUN dnf clean all
# Python, C/C++ compilers, git
# ============================
RUN dnf -y install gcc redhat-rpm-config gcc-c++ python3-devel make cmake git
# Set up a virtual environment, set all calls to pip3 and python3 to use it
# =========================================================================
RUN pip3 install virtualenv
ENV VIRTUAL_ENV=/root/env
RUN virtualenv -p python3 $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN ls -al /root/.bashrc
RUN more /root/.bashrc
RUN echo "export PATH=$PATH" >> /root/.bashrc
# Python packages for documentation, Jupyter notebook support and visualization
# =============================================================================
RUN pip3 install --upgrade pip
RUN pip3 install ipython jupyter setuptools wheel sphinx py3Dmol sphinx_rtd_theme nbsphinx scikit-build
# Install Tangelo and its immediate dependencies (pyscf, openfermion, ...)
# ========================================================================
# > Option 1: install from pypi
RUN pip3 install tangelo-gc
# > Option 2: install from locally mounted Tangelo, in the docker container
# ENV PYTHONPATH=/root/tangelo:$PYTHONPATH
# WORKDIR /root/
# COPY . /root
# RUN python3 -m pip install .
# OPTIONAL: common dependencies (quantum circuit simulator and quantum cloud services)
# ====================================================================================
RUN pip3 install cirq amazon-braket-sdk qiskit qulacs projectq pennylane