The playground has a single required environment variable. It tells the Next.js backend where the quasar quantum simulator service is running on Google Cloud Run. Without it, every API call returns an error.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.
GOOGLE_CLOUD_SERVICE_URL
The base URL of the deployed quasar service on Google Cloud Run.| Property | Value |
|---|---|
| Required | Yes |
| Set in | Vercel project environment variables |
| Used by | /api/simulate, /api/share, /api/edit, /api/validate |
Format
What it controls
All four API endpoints in the playground use this variable to forward requests to the quasar gRPC-transcoded service. Internally, each endpoint constructs a request to:<Method> is one of Simulate, Share, Edit, or Validate.
What happens if it is not set
IfGOOGLE_CLOUD_SERVICE_URL is missing, every API call returns an HTTP 500 response with the following body:
How to set it in Vercel
Deploy quasar to Google Cloud Run
Follow the quasar deployment instructions to deploy the simulator service. Copy the service URL from the Cloud Run console once deployment completes.
Open your Vercel project settings
In the Vercel dashboard, navigate to your
qasm-playground project and click Settings, then Environment Variables.Add the variable
Set the variable name to
GOOGLE_CLOUD_SERVICE_URL and paste the Cloud Run service URL as the value. Apply it to the Production environment (and optionally Preview).