This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jupyter/minimal-notebook:7f1482f5a136 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
// This namespace provides the API that we need to implement | |
// to interact with PowerShell. | |
using System.Management.Automation; | |
// This namespace provides the target machine that we will use to run our Q# | |
// code. | |
using Microsoft.Quantum.Simulation.Simulators; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As well as anything can be known, she knew three things about the world. | |
The first was the difference between syntax and semantics. | |
Syntax is that which can be named, reasoned about, understood, and reduced to its most fundamental form. | |
Semantics, on the other hand, is the domain of that which cannot be understood merely as the sum of its constituent tokens, but which must be understood as a whole — that which defies reduction. | |
Though as different as form and function, as void and vacuum, together syntax and semantics make everything around us. | |
The sunrise is beautiful not wholly because of semantics, but because we have a syntax to express that which happens every day, that which revolves around us, that which recurs into time immortal and yet has a quality beyond that mere quality. | |
This distinction, of course, is familiar not only to linguists who study how we convey meaning to others, but also to the programmers who cast magic (but I am ahead of myself here). | |
Keats' rainbow was not merely unwoven, but dec |