Building your first Qollab projectLesson 1 of 5

Create a Project on Qollab

Choose how a project starts, complete its Project Card and files, then publish an immutable version.

An abstract composition representing a new Qollab project.

A Qollab project starts as a private draft with a Project Card, source files and a runtime configuration.

You need a free Qollab account with a username, and you need to be signed in. Sign in or sign up before you start.

Start a new project

Open + New Project from the top navigation. You can also choose New Project from the account menu or Add Project from the Projects page. Each entry opens Create New Project.

The Projects page with Add Project outlined in orange and + New Project in the top navigation.
Start from Add Project on the Projects page. The orange box marks the button; + New Project is also available in the navigation.

Choose the starting files

  1. Enter a Project Title.
  2. Add a Project description of no more than 240 characters.
  3. Optionally choose Select Template (Optional) to start from a template.
  4. Under Project shape, choose Python / Qiskit, JS / Qiskit wrapper or Upload your own files.
  5. Select Create.

Python / Qiskit starts with main.py and requirements.txt. JS / Qiskit wrapper starts with index.html, main.js, main.css and requirements.txt. Upload your own files accepts individual files, a folder or an archive. A top-level main.py makes the upload run as Python. Top-level index.html and main.js make it run as JS. Without either entry point, the upload card warns you and Run stays disabled until you add one.

The Create New Project dialog with three Project shape cards, including Upload your own files, outlined in orange.
Choose the starting files under Project shape. The orange box marks the three available project shapes.

Selecting Create confirms the linked terms and opens the private draft in edit mode.

Complete the Project Card

The Project Card tab contains the project title, optional thumbnail and write-up. The write-up accepts Markdown and has Write, Preview and math controls. The sidebar contains Contributors, Tags, About, Project Versions, Project Website and Repositories. Select the pencil beside the title to rename the project. Qollab saves these edits automatically.

A draft Project Card tab in edit mode with the title control, write-up editor and project details.
Complete the Project Card before publishing the project.

Check the project files

The Code tab contains the project file tree and editor. A new Python / Qiskit project includes main.py and requirements.txt. You can create, rename, remove and upload files from the file tree.

The Code tab in file tree view with main.py and requirements.txt beside the editor.
Open main.py from the file tree to inspect the Python starter.

The current main.py starter builds a Bell state above this run function. The listing is an exact excerpt from the starter:

from qiskit.providers.jobstatus import JobStatus
import time

def main(shots: int = 100, excludeLowProbabilityValues: bool = True, lowProbabilityThreshold: float = 0.05):
  # Submit the job for execution
  job = backend.run(circuit, shots=shots)

  # Poll for status till the job is done
  while True:
    status = job.status()
    print(f"Job status is {status}")
    match status:
      case JobStatus.DONE:
        break
      case JobStatus.ERROR:
        raise Exception(job.result())
    time.sleep(10)

  # Get values to probabilities map
  counts = job.result().get_counts()
  if excludeLowProbabilityValues:
    shotsThreshold = shots * lowProbabilityThreshold
    # Filter noise
    counts = {bits: cnt for bits, cnt in counts.items() if cnt > shotsThreshold}

  print(f"Counts for {shots} shots: {counts}")

The three parameters become Shots, Exclude Low Probability Values and Low Probability Threshold under Run settings in the Select QPU dialog.

Publish a version

Select Publish in the project header. Enter a Version name, add optional Release notes, choose a visibility option and select Publish Version. A published version is an immutable snapshot. Later edits remain in the draft until you publish another version.

The project header with Draft and Publish outlined in orange.
Select Publish to open the version form. The orange boxes mark the draft status and Publish action.

A project with a public default version can show the Discussions tab when discussions are enabled. A draft with no public version remains private.

Stay in the loop.

Get the latest tutorials, demos, and project showcases straight to your inbox. No noise, just the good stuff.