Skip to content
forked from Strilanc/Quirk

A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.

License

Notifications You must be signed in to change notification settings

wangshiphys/Quirk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Circuit Inspector

A visualization and experimentation tool for small quantum circuits. Includes common single-qubit gates, but not many multi-qubit gates (e.g. swap and fourier transform). Supports controlled and time-varying operations. Not much support for customization yet.

For example, here is a screenshot of a quantum teleportation circuit. The qubit in A1, which is entangled with B2, is teleported to B1:

The Inspector

The bottom left thing is a representation of the highlighted operation as a matrix. Next to it is a representation of the state after the highlighted operation (each cell is one of the classical states, and the contents represent the amplitude). The bottom right thing is a representation of the final state. Within the circuit, the gates showing percentages are "peek" gates. They are showing the probability of the wire being on (if it was measured at that point), both given that the controls are satisfied and in-addition-to the controls being satisfied.

JSFiddle Instance

(Up to date as of Dec 6. Basically just all of the javascript concatenated together.)

http://jsfiddle.net/c4f5z73v/2/

About

A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.2%
  • HTML 1.8%