Sign inSign up

benislocated/scq

By benislocated

Updated 12 months ago

Image
0

148

benislocated/scq repository overview

Dockerfile:

# FOSS in https://arxiv.org/abs/2411.16967
# A Review of Design Concerns in Superconducting Quantum Circuits
# Eli M. Levenson-Falk and Sadman Ahmed Shanto

# In Rocky Linux, "UBI" refers to the Red Hat Universal Base Image
# https://hub.docker.com/r/rockylinux/rockylinux/tags
# FROM rockylinux/rockylinux:10-ubi-micro # Fatal glibc error: CPU does not support x86-64-v3
# FROM rockylinux/rockylinux:10-ubi       # Fatal glibc error: CPU does not support x86-64-v3
# FROM rockylinux/rockylinux:9.3-minimal # #6 0.464 /bin/sh: line 1: apt-get: command not found
FROM rockylinux/rockylinux:9.3-ubi
# TO try: "9.6" or "9.6-ubi"

# PYTHONDONTWRITEBYTECODE: Prevents Python from writing pyc files to disk (equivalent to python -B option)
ENV PYTHONDONTWRITEBYTECODE=1


# https://docs.docker.com/engine/reference/builder/#run
RUN dnf update -y && \
    dnf install -y \
    python3 python3-pip python3-devel gcc gcc-c++

# https://scqubits.readthedocs.io/en/v3.2/installation.html
RUN pip3 install scqubits

# https://github.com/qucat/qucat
RUN pip3 install qucat

# https://www.sqcircuit.org/
# https://github.com/stanfordLINQS/SQcircuit/
RUN pip3 install SQcircuit

# https://github.com/PhilippAumann/circuitq
# https://circuitq.readthedocs.io/en/latest/installation.html
RUN pip3 install circuitq

# https://github.com/zlatko-minev/pyEPR
# https://pyepr-docs.readthedocs.io/en/latest/
RUN pip3 install pyEPR-quantum

# https://pypi.org/project/qiskit-metal/
RUN pip3 install qiskit-metal

# https://github.com/gdsfactory/gdsfactory
# https://gdsfactory.github.io/gdsfactory/developer.html
RUN pip3 install gdsfactory_install
#RUN pip3 install uv
#RUN gfi install

# https://lfl-lab.github.io/SQuADDS/source/resources/palace.html
# https://github.com/awslabs/palace

Makefile:

# Get the machine architecture.
# On arm64 (Apple Silicon M1/M2/etc.), `uname -m` outputs "arm64".
# On amd64 (Intel), `uname -m` outputs "x86_64".
ARCH := $(shell uname -m)

ifeq ($(ARCH), arm64)
        this_arch=arm64
else ifeq ($(ARCH), x86_64)
        this_arch=amd64
else
        @echo "Unknown architecture: $(ARCH). Cannot determine if Mac is new or old."
endif

scq_image=scq

my_tag=latest-$(this_arch)

container=docker
#container=podman

container: container_build container_live

container_build:
	$(container) build -t $(scq_image):$(my_tag) .

container_live:
	$(container) run -it --rm \
                -v `pwd`:/scratch -w /scratch/ \
                $(scq_image):$(my_tag) /bin/bash


container_tag:
	docker tag $(tag_number) benislocated/$(scq_image):$(my_tag)
	docker login
	docker push benislocated/$(scq_image):$(my_tag)

Tag summary

Content type

Image

Digest

sha256:0af3818b0

Size

8.9 GB

Last updated

12 months ago

docker pull benislocated/scq:latest-amd64