QubitLab
IDELearnPlaygroundDocsCommunity
Log in
QubitLab
IDELearnPlaygroundDocsCommunity
Log in
HomeLearnCatalogRanksPlaygroundDocs
  1. Docs
  2. GitHub and git in the Playground
Learn
  • Quantum basics
  • OpenQASM 3 cheat sheet
  • All gates, with the math
  • Every gate, interactive
  • Entanglement: how CNOT connects qubits
Circuits
  • Dynamic circuits: if/else, loops and conditions
Lessons
  • Learning path: from one qubit to algorithms
  • Quantum machine learning by hand
Run
  • Compile (transpile): levels, basis gates, topology
  • Simulators, noise, T1/T2 and fake backends
  • Python in the Playground
  • GitHub and git in the Playground
  • Articles and sharing
Analyze
  • Metrics: comparing distributions
  • Q-sphere and Bloch spheres
Hardware
  • Real IBM Quantum hardware
  • Device topology and calibration heat maps
  • Benchmark circuits: MQT Bench and QASMBench
Advanced
  • Circuit cutting, in depth
Story
  • The story of quantum computing
  • The Hamiltonian: where gates come from
  • What to expect next
Documentation/Run/GitHub and git in the Playground

GitHub and git in the Playground

Keep your Playground code in your own GitHub repository. QubitLab follows the usual git steps (change, stage, commit, push), with a panel to click through and a git prompt in the Terminal. You can also import files from any public repository and save IDE circuits to GitHub.

1. Connect GitHub

  • Open the Playground, click the GitHub icon in the Explorer, then Connect GitHub (or Dashboard → Providers → GitHub). You need a free account with a confirmed email.
  • GitHub asks you to allow access to your repositories. QubitLab stores the access encrypted, never shows it to the browser, and only uses it when you push, list your repositories or import.
  • Disconnect any time in the same place. Signing in with GitHub is separate: it only reads your email.

2. Choose a repository

  • New repository: give it a name, choose Public or Private, and keep “Add a README.md” ticked. The repository is made on GitHub at your first push.
  • Existing repository: pick one you can write to. Its default branch is used.
  • The README.md lists your files and how to run them; edit it like any other file.

3. Change, stage, commit, push

StepIn the panelIn the Terminal
See what changedChanges list: U new, M modified, D deleted (also shown in the Explorer)git status
Stage filesTick files, or Stage allgit add . · git add bell-states.py · git add data/
UnstageUntickgit reset <file>
CommitWrite a message, then Commitgit commit -m "Add Bell state"
PushPush N (or Commit & push)git push
HistoryThe queue under the formgit log
git init my-quantum-lab --private   # new private repository, adds README.md
git add .
git commit -m "First circuits"
git push

git remote add origin your-name/qubits main   # or use an existing one
git status
The git prompt sits under the run log in the Playground's Terminal tab. Type help to see every command; ↑ and ↓ bring back earlier ones.

The push queue

Each commit waits in a queue and is pushed in order, as its own commit on GitHub. You see its state (waiting, pushing, done with a link, or failed with the reason). If one fails, for example because of a limit, the queue stops there: fix the cause and press Push again. Pushed commits stay listed for git log until you clear them.

Import from GitHub

  • GitHub → Import: type owner/name or paste a github.com link (or pick one of yours), tick the files, choose a folder, Import.
  • Only Playground files come in: .py, .qasm, .csv, .tsv, .txt, .json, .md and .dat. Imported code runs only in the sandbox, like your own.
  • Public repositories work without connecting; your private ones need the connection.

Save IDE circuits to GitHub

In the IDE, open the code download menu and choose Save to GitHub · OpenQASM 3 or · Python. Pick the repository, the file path (circuits/<name> by default) and a message; it is pushed as one commit.

Limits and rules

RuleLimit
Files per commit or import40
Size of one file100 KB
Size of one push or import1 MB
Pushes per hour10
File namesLetters, digits, . - _ and folders; no .. or hidden secrets files
RepositoriesOnly ones you can write to

What QubitLab's git does not do (yet): branches other than the one you linked, pull, merge and history from GitHub. The commit history lives in this browser for your account; GitHub always keeps the pushed code. To work on another device, import from your repository there.

← Previous
Python in the Playground
Next →
Articles and sharing
On this page
  • 1. Connect GitHub
  • 2. Choose a repository
  • 3. Change, stage, commit, push
  • The push queue
  • Import from GitHub
  • Save IDE circuits to GitHub
  • Limits and rules
Try it in the IDE →
QubitLab
IDELearnPlaygroundDocsCommunity
Log in
QubitLab
IDELearnPlaygroundDocsCommunity
Log in