/ documentation Back to lab

QORBIT LAB / OPERATING NOTES

Documentation.

From your first gate to a shared experiment.

01 /

Run an experiment

Pick teleportation, superdense coding or Bell-state preparation in the lab. Next step applies one operation at a time, while Run protocol plays the whole sequence for you. Reset begins a fresh sampled run. If you change the starting angle or the message bits, the experiment restarts from the top.

02 /

Read the quantum state

The probability bars give the odds of each measurement result; they are not a forecast for your very next run. The state vector lists the complex amplitudes together with their phase. A Bloch sphere shows one qubit at a time, and an entangled qubit can look mixed on its own even though the joint state of the pair is pure.

03 /

Build and save a circuit

Open the circuit editor, set 1 to 4 qubits and drop gates into steps (up to 20). A two-qubit gate needs two different wires. Run previews the circuit in the lab. Save stores a copy in this browser under your display name, and the circuit library lets you run, rename, duplicate or delete what you saved.

04 /

Share and export

Every custom circuit has a Share link: the circuit is packed into the URL so anyone can open it in their own lab, with nothing stored on a server. The editor also imports and exports JSON, and Download report gives you a printable report, a probability CSV or the raw simulation JSON.

A share link carries the circuit as base64url-encoded JSON (standard base64 with - and _ instead of + and /, no padding). The object has the shape { title, qubits, steps: [{ title, gates: [{ name, wires }] }] }. Links that fail to decode, or that fall outside the allowed ranges, are ignored rather than half-loaded.

Share-link payload (before encoding)
{
  "title": "Bell pair",
  "qubits": 2,
  "steps": [
    { "title": "Superpose", "gates": [{ "name": "h", "wires": [0] }] },
    { "title": "Entangle", "gates": [{ "name": "cx", "wires": [0, 1] }] }
  ]
}

Any protocol or circuit can also be exported as OpenQASM 2.0. The file starts with the OPENQASM 2.0 header and qelib1.inc, declares one qreg q[n] plus a one-bit creg per measured qubit, and then lists each gate in step order, so you can paste it into Qiskit or another toolchain and run it on real hardware.

OpenQASM export of the Bell pair
OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
h q[0];
cx q[0], q[1];
05 /

Publish to the demo marketplace

While signed in, open your circuit library and press Deploy next to a saved circuit. Write a short description, set a price in demo $QORB units and publish. The listing keeps its own copy of the circuit, so later edits or deletions in your library leave it untouched. Publishing a second time under the same title updates your existing listing.

06 /

Demo prices, not transactions

$QORB is the storefront's reference token. "Deploy" in this app only means putting a listing on the marketplace; no smart contract runs. Nothing is paid, transferred or deployed on any chain, and no wallet is asked to approve a transaction. Sample listings are labelled as such, and demo checkout just opens the circuit for study without charging anyone.

07 /

Wallets and networks

Qorbit works with any EVM chain. Connect discovers installed wallets through EIP-6963, so every extension that announces itself shows up in the list without any wallet-specific code. Once connected, the network picker can switch to any chain your wallet already knows or add a new one with wallet_addEthereumChain; networks you add by hand are remembered locally.

Signing in with a wallet uses Sign-In with Ethereum (EIP-4361). The server hands out a one-time nonce, your wallet signs a plain-text message, and the server checks the signature. The signature is free: no transaction, no gas, no token approval. You can also link a wallet to an email account and unlink it again from the profile page.

Connect
EIP-6963 discovery, then eth_requestAccounts on the wallet you choose.
Switch / add network
wallet_switchEthereumChain, falling back to wallet_addEthereumChain for unknown chains.
Sign in
EIP-4361 message signed with personal_sign, verified server-side.
Token chip
Shows the token contract with copy, explorer and add-to-wallet actions.
08 /

Token contract chip

The contract chip near the footer and on the venture page shows the $QORB token address. Click it to copy the address. When the token is deployed on more than one EVM chain, the arrow opens the list of deployments, each with a link to that chain's block explorer and an action that adds the token to your wallet. The chip prefers the deployment on the network your wallet is using. Until an address is configured it shows a placeholder.

Deployments are configured with NEXT_PUBLIC_TOKEN_DEPLOYMENTS, either as JSON ([{ chainId, address }]) or as a compact list such as 8453:0x…,10:0x….

09 /

Signed certificates

Finishing the course lets you claim a certificate. The server signs it as EIP-712 typed data with a secp256k1 issuer key. The signing domain deliberately leaves out chainId, so a certificate is valid on every EVM chain and in any tool. Each certificate has a public page at /certificates/[id] that re-checks the signature in your browser, and /verify accepts an id.

Anyone can recover the issuer from the record: use viem or ethers on a client, or call ecrecover over the EIP-712 digest inside a contract on whichever chain you like. A valid certificate recovers to the issuer address published on its page.

Verify a certificate with viem
import { recoverTypedDataAddress } from "viem";

const { data } = await (await fetch("/api/lab/certificate?id=" + id)).json();
const signer = await recoverTypedDataAddress({
  domain: data.typedData.domain,
  types: data.typedData.types,
  primaryType: "Certificate",
  message: data.typedData.message,
  signature: data.signature,
});
console.log(signer === data.issuerAddress); // true when genuine
10 /

Accounts and saved data

You can use the lab and read the course with no account. An account (email and password, or a wallet) adds synced course progress, certificates, marketplace publishing and forum posting. Everything else stays in your browser under these keys:

qorbit.saved
Your saved circuit library in this browser
qorbit.learning
Local copy of lesson, elective and capstone progress
qorbit.auth.session
The session token for the signed-in account
qorbit.profile
Cached display name and linked wallet
qorbit.email
The email of the signed-in account
qorbit.customChains
Networks you added by hand to the network picker
qorbit.wallet.last
The wallet you connected last, offered again on return
qorbit.tour.done
Set once you finish or skip the lab tour
qorbit.beginner
Beginner mode toggle for the lab
qorbit.course-attempts
Your recent quiz attempts for each lesson
qorbit.study-attempts
Your recent quiz attempts for each advanced study
qorbit.capstone-draft
The capstone circuit and abstract you are still working on
qorbit.capstone-submissions
Capstone submissions you made from this browser

Clearing site data removes the local copies. Anything synced to your account, such as course progress, comes back when you sign in again.

11 /

Pages

/
The lab: protocols, circuit editor, state readouts, shots, share and export
/start
A short guided start for first-time visitors
/course
The 27-lesson course, quizzes and progress
/course/[lesson]
One lesson with its notes, diagram and quiz
/course/certificate
Claim and download your signed course certificate
/university
Degree track: years, electives, capstone, credits and transcript
/university/capstone
The capstone project: build a GHZ circuit, grade it and submit it
/advanced
Advanced studies beyond the core course
/study/[id]
An elective or advanced study module
/certificates/[id]
Public certificate page that anyone can verify
/experiments
Grover search, the Fourier transform and a noise lab with sampled shots
/lab3d
3D Bloch-sphere lab
/marketplace
Demo circuit marketplace
/community
Forum topics and replies
/discussion/[id]
A single forum discussion
/hardware
Sample a saved circuit and export it as a Qiskit script for a real device
/profile
Account, wallet link, saved circuits and progress
/verify
Check a certificate from its link or ID
/transcript/[id]
Shareable transcript of completed work
/reset-password
Explains that password resets aren't offered yet and how to get back in
/docs
This page
/glossary
Searchable quantum glossary
/proofs
Ten derivations with assumptions and examples
/careers
Quantum roles, salaries and a learning path
/venture
Quantum venture-capital map and a mock valuation toy
12 /

HTTP API

Every endpoint answers with a JSON envelope: { data } on success, { error } with a non-2xx status on failure. Authenticated calls send the session token as an Authorization: Bearer header. Endpoints are rate limited per client address.

POST /api/auth/signup
Create an account with email and password
POST /api/auth/signin
Sign in with email and password
GET /api/auth/session
Return the user behind the bearer token, or an error
POST /api/auth/profile
Update the display name
POST /api/auth/signout
Revoke the current session token
GET /api/auth/wallet/nonce
Request a one-time nonce for a Sign-In with Ethereum message
POST /api/auth/wallet/verify
Check a signed EIP-4361 message; signs in or links the wallet
POST /api/auth/wallet/unlink
Remove the linked wallet from the account
GET /api/lab/certificate?id=
Public certificate record, or null for an unknown id
GET/POST /api/lab/course/progress
Read progress; grade a lesson quiz, grade the capstone or issue the certificate
GET/POST /api/lab/marketplace
List demo listings; publish or update your own
GET/POST /api/lab/community
List topics (or one with ?topicId=) and post new ones or replies
GET /api/lab/community/own
Topics and replies written by the signed-in user
GET/POST /api/lab/extension
Best advanced-study results; grade a study quiz with feedback per question
GET /api/chains[?ids=]
Chain metadata for the network picker, optionally filtered by chain id
Example
curl -s "https://qorbit.site/api/lab/certificate?id=CERT_ID"
# { "data": { "payload": { ... }, "signature": "0x...", "issuerAddress": "0x...", "valid": true, "typedData": { ... } } }
# unknown id: { "data": null }
13 /

Under the hood

The interface is built with Next.js, React and Tailwind CSS. A small state-vector simulator runs ideal, noiseless circuits directly in your browser; wire 0 is the most significant bit. Accounts, synced progress, certificates, marketplace listings and forum posts live in the app's own database behind the API above, and wallet features talk to your wallet and to public RPC endpoints. This is an educational simulator, not a service for running jobs on quantum hardware.