search_examples
Search for runnable CUDA-Q example programs by query, language, and version. Use these complete examples from the CUDA-Q repository to avoid writing kernels from memory.
Instructions
Find complete, runnable CUDA-Q example programs.
Sources are the example, snippet, and application files shipped in the CUDA-Q repository at the matching release. Prefer adapting these over writing kernels from memory.
Args: query: What the example should show, for example "GHZ state", "VQE", or "noise model". language: "python" or "cpp" to filter; omit for both. version: Docs version. Defaults to the installed cudaq version. limit: Maximum number of examples (default 3).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| version | No | ||
| language | No |