I’ve always been a proponent of the idea that one of the best ways to learn about a topic is to code up a simple example that uses that idea/concept/algorithm. In conversations I’ve had with students recently, I’ve realized there is some interest in playing with quantum computing, quantum circuits, and quantum simulation without a …
Category: Code
A quick molecule in Processing.js and Python
As an extension to my last post on rendering Processing code in an IPython notebook, I thought it might be fun to play a bit with the 3D functionality and see how easy it would be to build an extremely basic molecule viewer! I didn’t spend much time polishing it, but the basic rendering turned …
Processing.js in an IPython Notebook
I’ve been playing a bit with generative art recently, and in this domain the Processing language is a popular choice. Processing allows fairly seamless creation of both 2D and 3D images as well as natural interactivity. I had some interest in linking it with Python to make artistic renderings on the fly of work I …
Simple bash-parallel commands in python
One of the benefits of using a primitive system like collections of flat files for data storage is the ability to trivially do work in parallel on them through the shell. This seems to be a relatively common workflow in both computational and data science. A quick Google search on the topic reveals a number …
Integrating over the unitary group
Quantifying the volumes of different types of quantum states with respect to each other is an interesting tool for analysis that I’ve recently become interested in. For example, did you know the volume of separable states is super-doubly-exponentially small with respect to all quantum states? That means that if I choose a state of 100 qubits …