get_example
Retrieve a maintained example notebook as markdown with runnable code cells. Get correct, working code for MerLin or Perceval quantum ML.
Instructions
Read an example notebook as markdown with runnable code cells.
This is the fastest way to get correct, working code: the notebooks are maintained against the current release. Cell outputs are omitted unless you ask for them.
Args: name: example name from list_examples, e.g. "notebooks/FirstQuantumLayers". library: "merlin" (default) or "perceval". include_outputs: also include printed output of each code cell. version: docs version override. offset: character offset to start from. limit: maximum characters to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| limit | No | ||
| offset | No | ||
| library | No | merlin | |
| version | No | ||
| include_outputs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |