Skip to content

Instantly share code, notes, and snippets.

View cgranade's full-sized avatar

Cassandra Granade cgranade

View GitHub Profile
@cgranade
cgranade / Dockerfile
Last active March 14, 2020 20:23
Values in Q#
FROM mcr.microsoft.com/quantum/iqsharp-base:0.10.2002.2610
ENV IQSHARP_HOSTING_ENV=dev-to-sckaiser-arrays
# Make sure the contents of our repo are in ${HOME}.
# These steps are required for use on mybinder.org.
USER root
COPY . ${HOME}
RUN chown -R ${USER} ${HOME}
# While root, upgrade the .NET Core SDK.
# Start from the IQ# base image. The definition for this image can be found at
# https://github.com/microsoft/iqsharp/blob/master/images/iqsharp-base/Dockerfile.
FROM mcr.microsoft.com/quantum/iqsharp-base:0.10.2001.2831
ENV IQSHARP_HOSTING_ENV=quantumcomputing-9690
# Make sure the contents of our repo are in ${HOME}.
# These steps are required for use on mybinder.org.
USER root
COPY . ${HOME}
RUN chown -R ${USER} ${HOME}
@cgranade
cgranade / Dockerfile
Last active January 22, 2020 05:04
Reproduction for `long?` bug
# The same image used by mybinder.org
FROM mcr.microsoft.com/quantum/iqsharp-base:0.10.1912.0501
ENV IQSHARP_HOSTING_ENV=cgranade-longq-bug-repro
# Make sure the contents of our repo are in ${HOME}
# Required for mybinder.org
COPY . ${HOME}
USER root
RUN chown -R ${USER} ${HOME}
USER ${USER}
# The same image used by mybinder.org
FROM mcr.microsoft.com/quantum/iqsharp-base:0.10.1912.0501
ENV IQSHARP_HOSTING_ENV=devto-cgranade-libraries-are-wonderful
# Make sure the contents of our repo are in ${HOME}
# Required for mybinder.org
COPY . ${HOME}
USER root
RUN chown -R ${USER} ${HOME}
USER ${USER}
@cgranade
cgranade / fail-estfreqa.ipynb
Created January 3, 2020 19:05
fail-estfreqa.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cgranade
cgranade / Dockerfile
Last active October 17, 2019 20:35
Passing parameters from Q# to Python
# Start from the IQ# base image. The definition for this image can be found at
# https://github.com/microsoft/iqsharp/blob/master/images/iqsharp-base/Dockerfile.
FROM mcr.microsoft.com/quantum/iqsharp-base:0.9.1909.3002
ENV IQSHARP_HOSTING_ENV="cgranade/python-parameters"
USER root
RUN pip install numpy matplotlib
# Make sure the contents of our repo are in ${HOME}.
# These steps are required for use on mybinder.org.
@cgranade
cgranade / Dockerfile
Last active September 9, 2019 00:49
Supplementary material for "This is not a qubit."
# Start from the IQ# base image. The definition for this image can be found at
# https://github.com/microsoft/iqsharp/blob/master/images/iqsharp-base/Dockerfile.
FROM mcr.microsoft.com/quantum/iqsharp-base@sha256:85dfe751b8f63dee15ffc51358ad5c61cbfc3e09cab21b3971cfd1e6d16f4cdc
ENV IQSHARP_HOSTING_ENV="cgranade-blog/this-is-not-a-qubit"
# Make sure the contents of our repo are in ${HOME}.
# These steps are required for use on mybinder.org.
USER root
COPY . ${HOME}
RUN chown -R ${USER} ${HOME}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Start from the IQ# base image. The definition for this image can be found at
# https://github.com/microsoft/iqsharp/blob/master/images/iqsharp-base/Dockerfile.
FROM mcr.microsoft.com/quantum/iqsharp-base:0.8.1907.1701
ENV IQSHARP_HOSTING_ENV=quantumcomputing-7012
# Make sure the contents of our repo are in ${HOME}.
# These steps are required for use on mybinder.org.
USER root
COPY . ${HOME}
RUN chown -R ${USER} ${HOME}
@cgranade
cgranade / Dockerfile
Last active July 9, 2019 16:22
Using Q# from Python
# The same image used by mybinder.org
FROM mcr.microsoft.com/quantum/iqsharp-base:0.8.1906.2007-beta
# Add metadata indicating that this image is used for the katas.
ENV IQSHARP_HOSTING_ENV=reddit
# Make sure the contents of our repo are in ${HOME}
# Required for mybinder.org
COPY . ${HOME}
USER root