quasar

command module
v0.0.0-...-63d34ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: MIT Imports: 15 Imported by: 0

README

PkgGoDev Go Report Card deploy

quasar

Quantum computing simulator as a Service.

Deploying to Google Cloud Run

export PROJECT_ID=YOUR_GOOGLE_CLOUD_PROJECT_ID
export LOCATION=YOUR_GOOGLE_CLOUD_LOCATION
export IMAGE=${LOCATION}-docker.pkg.dev/${PROJECT_ID}/quasar/app

gcloud builds submit --config cloudbuild.yaml --substitutions=_IMAGE=${IMAGE},_TAG=latest .
gcloud run deploy --image ${IMAGE} --set-env-vars=PROJECT_ID=${PROJECT_ID} quasar

Examples

curl -s \
    $(gcloud run services describe quasar --project ${PROJECT_ID} --format 'value(status.url)')/quasar.v1.QuasarService/Simulate \
    -H "Authorization: Bearer $(gcloud auth print-identity-token)" \
    -H "Content-Type: application/json" \
    -d "$(jq -Rs '{code: .}' testdata/bell.qasm)" | jq
{
  "states": [
    {
      "probability": 0.5,
      "amplitude": {
        "real": 0.7071,
        "imag": 0
      },
      "binary_string": [
        "00"
      ]
    },
    {
      "probability": 0.5,
      "amplitude": {
        "real": 0.7071,
        "imag": 0
      },
      "binary_string": [
        "11"
      ]
    }
  ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
share command
simulate command
validate command
gen

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL