QisPlay Templates: Start a Project from a Course Lab

3 min read

QisPlay Templates cover

QisPlay now has templates. Instead of starting from an empty project, you can pick a starter project from a gallery, and QisPlay copies its files into a new project ready to run.

What’s new

Open the Project menu → New project from template…, or search for it in the command palette. The gallery shows each template’s title, description, level, and tags. You can narrow it to one collection, or search by title, description, or tag. Pick one, and QisPlay creates a new project with the template’s files and opens the ones you need first, usually the instructions and the main script.

Like the rest of QisPlay, there is no account and no server. The project lives in your browser, just like one you made yourself.

The first collection: Intro to Quantum Computing

The first collection is a set of eight practice labs for an introductory quantum computing course:

  1. Qiskit Basics: gates, measurement, composing and inverting circuits, and parameters
  2. States and Measurement
  3. Entanglement
  4. Simulation and Noise
  5. Teleportation and Superdense Coding
  6. Deutsch–Jozsa and Bernstein–Vazirani
  7. Grover’s Search
  8. QFT and Phase Estimation

Each lab has a README.md with the learning goals and tasks, and a Python file with functions marked TODO. Press Run at any time: parts you haven’t finished yet are reported as “not implemented”, so you can work through a lab one task at a time.

Template updates

When a template is improved, projects made from it don’t change behind your back. Instead, QisPlay shows Template updated in the header, with a short note on what changed. You can take a fresh copy as a new project, which leaves your existing work alone, or dismiss the notice for that version. Nothing is merged into your code.

A project remembers which template it came from even after you download it as a .zip and open it again, so the update notice keeps working.

For instructors

Templates make it easy to hand a class the same starting point. You can link straight to the gallery:

The templates live in a public GitHub repo, github.com/kriss-u/qisplay-templates. Each template is a folder with a template.json (title, description, version, tags, level, and which files to open) next to the files a new project starts with. QisPlay reads the newest release of the repo through jsDelivr’s CDN, so publishing a change is just a commit: semantic-release tags a new version and QisPlay picks it up within a few minutes. The repo’s README covers the format and the release workflow.

Try it yourself

Head to qisplay.nepcodex.com, open New project from template…, and start with Lab 1.

Related Posts