BraKetVue: Vue.js + TypeScript for quantum state visualization

Piotr Migdal, Klem Jankiewicz

11 Aug 2020, NYC Quantum Computing Meetup

Intro

We

Talk: http://p.migdal.pl/nyc-qc-braketvue/#/

  • Piotr Migdal
  • Klem Jankiewicz
    • designer, UX/UI
    • intersection of technology, education and design
    • (now also: JS, git, and QM)

We have just founded Quantum Flytrap.

Quantum Game with Photons

We worked in Centre for Quantum Technologies in Singapore, invited by Artur Ekert:

All I want is the coolest quantum game in the known multiverse, please!

Our goal is to become a game-changer for e-learning: an essential tool for educators in the field of quantum cryptography and quantum computing.

Quantum Flytrap

quantumgame.io

Visualization tools

You can play the game in your free time. :)

Now, let’s focus on visualization and go beyond static LaTeX:

\[ | \psi \rangle = \frac{| 0 \rangle + | 1 \rangle}{\sqrt{2}}\]

BraKetVue

BraKetVue

⟨𝜑|𝜓⟩.vue - a Vue-based visualization of quantum states and operations

Core ideas

  • discrete state
  • beyond qubits
  • named dimensions
  • multiple representations
    • complex numbers: polar, cartesian or…?
    • dynamic change of basis
  • for any system (also user-defined)
  • embeddable in blog posts

Operators

Hadamard

CNOT

The simplest two-qubit gate

Toffoli

Quantum AND

Spin-Z

One of the Pauli matrices

const spinZ = Operator.fromSparseCoordNames([
  ['u', 'u', Cx(1)],
  ['d', 'd', Cx(-1)],
], [Dimension.spin()]);

A 50:50 non-polarizing beam-splitter

In dark mode

Truth table

Call to action

How to use it

In deep learning it is a good standard to set up a github.io page with demo.

Thanks!

github.com/Quantum-Game/bra-ket-vue

Contact: pmigdal@gmail.com, Twitter: pmigdal

Especially if you want to use it in your project, academic or commercial.