The public playground runs on a shared simulator backend. If you want full control — your own simulator, your own rate limits, your own data — you can deploy a private instance in about 15 minutes. The frontend deploys to Vercel; the simulator backend (quasar) deploys to Google Cloud Run. One environment variable connects them.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/itsubaki/qasm-playground/llms.txt
Use this file to discover all available pages before exploring further.
Deploy quasar to Google Cloud Run
The quasar service is the quantum simulator backend. It exposes an HTTP API that the playground calls to execute OpenQASM circuits.Clone the repository and deploy it to Google Cloud Run:After deployment, the Cloud Run console displays the service URL. Copy it — you will need it in step 3. It looks like:
The
--allow-unauthenticated flag makes the service publicly accessible. For a private deployment, remove this flag and configure authentication between Vercel and Cloud Run using a service account.Deploy qasm-playground to Vercel
Fork or clone the qasm-playground repository, then import it into Vercel:
- Go to vercel.com/new and select your forked repository.
- Vercel detects the Next.js framework automatically — no build configuration changes are needed.
- Do not deploy yet. Continue to step 3 to add the required environment variable first.
Set the GOOGLE_CLOUD_SERVICE_URL environment variable
The playground needs to know where to send simulation requests. Set
GOOGLE_CLOUD_SERVICE_URL to the Cloud Run service URL from step 1.In the Vercel project dashboard:- Go to Settings → Environment Variables.
- Add a new variable:
- Name:
GOOGLE_CLOUD_SERVICE_URL - Value: your Cloud Run service URL (e.g.,
https://quasar-<hash>-uc.a.run.app)
- Name:
- Select Production (and optionally Preview) as the environment.
- Click Save.
Verify the deployment
Open your Vercel deployment URL. The playground should load with the Bell state example pre-filled. Click Run and confirm that results appear in the output panel.If simulation fails, check:
- The
GOOGLE_CLOUD_SERVICE_URLvalue in Vercel matches the Cloud Run service URL exactly (no trailing slash) - The Cloud Run service is running and accessible (
gcloud run services list) - The Vercel deployment picked up the environment variable (redeploy after adding it)
Summary
| Component | Platform | Repository |
|---|---|---|
| Frontend | Vercel | itsubaki/qasm-playground |
| Simulator backend | Google Cloud Run | itsubaki/quasar |
GOOGLE_CLOUD_SERVICE_URL environment variable in your Vercel project, pointing to your quasar Cloud Run service.