On error-corrected hardware you don’t run gates directly on physical qubits. Each logical
qubit is a patch of many physical qubits protected by a surface code, and every logical
operation is carried out as a lattice-surgery procedure: patches merge, interact, and
split across repeated rounds of stabilizer measurement to realize the gate. Routing is
the step that turns your logical circuit into this concrete, fault-tolerant execution plan:
route_circuit works out where and when each operation happens on the surface-code
lattice.
the two spatial axes are the grid of surface-code patches — your logical qubits and the
free space they use to interact;
the third axis is time, measured in cycles.
A cycle is one logical time step, one z-layer of the lattice. The noise model assumes
each cycle spans exactly d rounds of stabilizer measurement, where d is the code distance,
so a program’s runtime on hardware is roughly its cycle count × d × the device’s round time.Each operation becomes a space-time volume in this lattice. The
visualization draws these as cubes
connected by pipes — the pipes are the channels along which patches merge and split to
carry out gates. T gates get special treatment: they consume a magic state produced by
a magic-state cultivation routine, which routing schedules alongside the Clifford
operations.The output is a TopologicalProgram — a complete, cycle-by-cycle layout of the circuit on
the lattice, together with summary statistics. Its size (how many patches, over how many
cycles) is the real cost of running the circuit fault-tolerantly, and it’s what the later
stages visualize and turn into an error estimate. Finding a good layout is a hard
combinatorial problem; the engine solves it pragmatically to scale to circuits well beyond
what hand-routing allows.
Routing expects a transpiled Clifford+T circuit — the gate set surface codes implement
natively. Build and synthesize a model as usual, then export it to OpenQASM with a
FaultTolerantTranspilationConfig so the circuit is decomposed into Clifford+T, and pass the
resulting QASM to route_circuit:
Keep keep_hierarchy at its default, False, when exporting for routing. With
keep_hierarchy=True, the exported QASM wraps rotation approximations in custom gates such as
rz_approx_0, and route_circuit rejects them with Gate 'rz_approx_0' is not supported by the router. The router accepts only the Clifford+T gates h, s, sdg, t, tdg, x,
y, z, and cx.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Classiq Docs","colors":{"primary":"#119DA4","light":"#119DA4","dark":"#252525"},"logo":{"light":"https://mintcdn.com/classiq/KOIyvRl59wygyHwT/resources/images/ClassiqLogo_black.svg?fit=max\u0026auto=format\u0026n=KOIyvRl59wygyHwT\u0026q=85\u0026s=05c70b0722c0e3ce41855332613b7165","dark":"https://mintcdn.com/classiq/KOIyvRl59wygyHwT/resources/images/ClassiqLogo_yellow.svg?fit=max\u0026auto=format\u0026n=KOIyvRl59wygyHwT\u0026q=85\u0026s=bf01ead39f6725fa4849b7c481d1dff5"},"favicon":"https://mintcdn.com/classiq/sA-J-h8chQJV9OAG/resources/images/ClassiqFavicon.png?fit=max\u0026auto=format\u0026n=sA-J-h8chQJV9OAG\u0026q=85\u0026s=752f5dcd6fdc3563c87e0697e34282b1","appearance":{"default":"dark"},"background":{"color":{"dark":"#191919"}},"footer":{"socials":{"x":"https://x.com/classiqtech","github":"https://github.com/Classiq/classiq-library","linkedin":"https://www.linkedin.com/company/classiq-technologies","youtube":"https://www.youtube.com/c/ClassiqTechnologies","slack":"https://classiq-community.slack.com"}},"seo":{"metatags":{"canonical":"https://docs.classiq.io"}},"fonts":{"heading":{"family":"Lato","weight":500,"source":"https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2","format":"woff2"},"body":{"family":"Lato","weight":400,"source":"https://cdn.prod.website-files.com/60000db7a5f449af5e4590ac/67bc6e7dacd49b96fe00e9af_latomedium.woff2","format":"woff2"}},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-FG13SFNT8X"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"classiq","hasAudioNarration":false,"actualSubdomain":"classiq","customDomains":["docs.classiq.io"],"gitSource":{"type":"github","owner":"classiq-technologies","repo":"classiq-docs","deployBranch":"prod","contentDirectory":"classiq","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aecaf3bd226238b4601e61b","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Library","count":180},{"language":"default","tag":"Applications","count":88},{"language":"default","tag":"User Guide","count":64},{"language":"default","tag":"Tutorials","count":63},{"language":"default","tag":"SDK Reference","count":53},{"language":"default","tag":"Algorithms","count":46},{"language":"default","tag":"Qmod Reference","count":40},{"language":"default","tag":"Qmod","count":30},{"language":"default","tag":"Functions","count":26},{"language":"default","tag":"Execution","count":22}],"searchSettings":{"showContentSnippets":false}},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"css/page_format.css","content":":root{p {\n /* letter-spacing: 0.5px; */\n /* font-weight: 400; */\n /* line-height: 160%; */\n /* font-size: 18px; */\n }\n\n .md-header,\n .md-header__inner,\n .md-header .md-tabs,\n .md-footer .md-footer-meta {\n background-color: #313131 !important;\n }\n\n .md-footer,\n .md-footer__inner {\n background-color: #393939 !important;\n }}[data-md-color-scheme=\"default\"]{--md-default-fg-color: #313131;--md-default-bg-color: #ffffff;--md-primary-fg-color: #119da4;--md-accent-fg-color: #119da4;--md-primary-fg-color--light: #119da4;--md-primary-bg-color--light: #119da4;--md-accent-fg-color--light: #119da4;--md-typeset-color: #1e1e1e;--md-typeset-color--light: #1e1e1e;--md-typeset-a-color: #0c7489;--md-typeset-a-color--light: #0c7489;--md-typeset-a-color--dark: #39ccd3}[data-md-color-scheme=\"slate\"]{--md-default-bg-color: #191919;--md-primary-fg-color: #119da4;--md-accent-fg-color: #119da4;--md-typeset-a-color: #39ccd3}[data-md-color-scheme=\"default\"] .md-search__input{color:rgba(0, 0, 0, 0.87);background-color:#f5f5f5}.md-search__input+.md-search__icon{color:var(--md-default-fg-color--light)}[data-md-color-scheme=\"default\"] .md-search__input::placeholder{color:rgba(0, 0, 0, 0.54)}@media (prefers-color-scheme: dark){.md-header,.md-header__inner,.md-footer .md-footer-meta{background-color:#1e1e1e!important}.md-footer,.md-footer__inner{background-color:#393939!important}}.md-header__topic{display:none}.md-header__source{flex:1;display:flex;justify-content:space-between;max-width:none;width:auto}@media (max-width: 60em){.md-header__source .md-source__repository{display:none}}.md-source__repository{max-width:100%}.doc-buttons{display:flex;justify-content:center;gap:0.2rem;flex-wrap:wrap;margin:1.5em 0}"}],"page":{"pagePath":"user-guide/error-correction/routing","slug":"/user-guide/error-correction/routing","pageMetadata":{"title":"Route a Program","icon":"/icons/bulletsharp.svg","description":null,"href":"/user-guide/error-correction/routing"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`On error-corrected hardware you don’t run gates directly on physical qubits. Each `,_jsx(_components.strong,{children:`logical\nqubit`}),` is a patch of many physical qubits protected by a surface code, and every logical\noperation is carried out as a `,_jsx(_components.strong,{children:`lattice-surgery`}),` procedure: patches merge, interact, and\nsplit across repeated rounds of stabilizer measurement to realize the gate. `,_jsx(_components.em,{children:`Routing`}),` is\nthe step that turns your logical circuit into this concrete, fault-tolerant execution plan:\n`,_jsx(_components.code,{children:`route_circuit`}),` works out `,_jsx(_components.strong,{children:`where and when`}),` each operation happens on the surface-code\nlattice.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-routing-produces`,children:`What routing produces`}),`\n`,_jsxs(_components.p,{children:[`The plan lives on a `,_jsx(_components.strong,{children:`3-D lattice`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`the two `,_jsx(_components.strong,{children:`spatial`}),` axes are the grid of surface-code patches — your logical qubits and the\nfree space they use to interact;`]}),`\n`,_jsxs(_components.li,{children:[`the third axis is `,_jsx(_components.strong,{children:`time`}),`, measured in cycles.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`cycle`}),` is one logical time step, one z-layer of the lattice. The noise model assumes\neach cycle spans exactly d rounds of stabilizer measurement, where d is the code distance,\nso a program’s runtime on hardware is roughly its cycle count × d × the device’s round time.`]}),`\n`,_jsxs(_components.p,{children:[`Each operation becomes a space-time volume in this lattice. The\n`,_jsx(_components.a,{href:`/user-guide/error-correction/visualization`,children:`visualization`}),` draws these as `,_jsx(_components.strong,{children:`cubes`}),`\nconnected by `,_jsx(_components.strong,{children:`pipes`}),` — the pipes are the channels along which patches merge and split to\ncarry out gates. `,_jsx(_components.strong,{children:`T gates`}),` get special treatment: they consume a `,_jsx(_components.em,{children:`magic state`}),` produced by\na magic-state cultivation routine, which routing schedules alongside the Clifford\noperations.`]}),`\n`,_jsxs(_components.p,{children:[`The output is a `,_jsx(_components.code,{children:`TopologicalProgram`}),` — a complete, cycle-by-cycle layout of the circuit on\nthe lattice, together with summary statistics. Its size (how many patches, over how many\ncycles) is the real cost of running the circuit fault-tolerantly, and it’s what the later\nstages visualize and turn into an error estimate. Finding a good layout is a hard\ncombinatorial problem; the engine solves it pragmatically to scale to circuits well beyond\nwhat hand-routing allows.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`For an interactive, visual walkthrough of the routed lattice, see the\n`,_jsx(_components.a,{href:`https://classiq-technologies.github.io/FTEngine/app/#routing`,children:`Fault Tolerance Engine overview`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`routing-a-circuit`,children:`Routing a circuit`}),`\n`,_jsxs(_components.p,{children:[`Routing expects a transpiled `,_jsx(_components.strong,{children:`Clifford+T`}),` circuit — the gate set surface codes implement\nnatively. Build and synthesize a model as usual, then `,_jsx(_components.code,{children:`export`}),` it to OpenQASM with a\n`,_jsx(_components.code,{children:`FaultTolerantTranspilationConfig`}),` so the circuit is decomposed into Clifford+T, and pass the\nresulting QASM to `,_jsx(_components.code,{children:`route_circuit`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`34`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`34`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` classiq `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` CX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` H,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Output,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` QArray,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` QBit,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TargetLanguage,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` FaultTolerantTranspilationConfig,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` allocate,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` export,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` qfunc,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` synthesize,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` classiq.error_correction.routing `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` route_circuit`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`@qfunc`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`qs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: Output[QArray[QBit]]) -> `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` allocate(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, qs)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` H(qs[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CX(qs[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], qs[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`qprog `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` synthesize(main)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`clifford_t_qasm `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` export(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` qprog,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` target_language`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`TargetLanguage.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`QASM2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` transpilation_config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`FaultTolerantTranspilationConfig(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` clifford_t_approximation_error`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1e-3`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`program `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` route_circuit(clifford_t_qasm)`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Keep `,_jsx(_components.code,{children:`keep_hierarchy`}),` at its default, `,_jsx(_components.code,{children:`False`}),`, when exporting for routing. With\n`,_jsx(_components.code,{children:`keep_hierarchy=True`}),`, the exported QASM wraps rotation approximations in custom gates such as\n`,_jsx(_components.code,{children:`rz_approx_0`}),`, and `,_jsx(_components.code,{children:`route_circuit`}),` rejects them with `,_jsx(_components.code,{children:`Gate 'rz_approx_0' is not supported by the router`}),`. The router accepts only the Clifford+T gates `,_jsx(_components.code,{children:`h`}),`, `,_jsx(_components.code,{children:`s`}),`, `,_jsx(_components.code,{children:`sdg`}),`, `,_jsx(_components.code,{children:`t`}),`, `,_jsx(_components.code,{children:`tdg`}),`, `,_jsx(_components.code,{children:`x`}),`,\n`,_jsx(_components.code,{children:`y`}),`, `,_jsx(_components.code,{children:`z`}),`, and `,_jsx(_components.code,{children:`cx`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`The resulting `,_jsx(_components.code,{children:`program`}),` is a `,_jsx(_components.code,{children:`TopologicalProgram`}),`. Next, you can\n`,_jsx(_components.a,{href:`/user-guide/error-correction/visualization`,children:`visualize it`}),` or\n`,_jsx(_components.a,{href:`/user-guide/error-correction/total-error`,children:`estimate its total error`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Route a Program","icon":"/icons/bulletsharp.svg","description":null,"href":"/user-guide/error-correction/routing"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What routing produces","slug":"what-routing-produces","depth":2,"children":[]},{"title":"Routing a circuit","slug":"routing-a-circuit","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/classiq/588df4baa9fe4869/javascripts/mathjax.js","/_mintlify/custom/classiq/cdc2514d6b755dcf/javascripts/remove_highlights.js","/_mintlify/custom/classiq/d98eeb06669bf6a7/javascripts/hide-home-search.js"],"subdomain":"classiq","siteName":"Classiq Docs","title":"Route a Program - Classiq Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T16:31:14.229Z","originalFileLocation":"user-guide/error-correction/routing.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Classiq Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Route a Program - Classiq Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Classiq Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.classiq.io/user-guide/error-correction/routing\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://classiq.mintlify.site/_mintlify/api/og/v2?division=Error+Correction\u0026amp;title=Route+a+Program\u0026amp;theme=bbd23582554c28c640e1d63a\u0026amp;signature=f01baab360fa9ce913658146834e7a07d8a450ca40876a30aeff267f3690653a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Route a Program - Classiq Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://classiq.mintlify.site/_mintlify/api/og/v2?division=Error+Correction\u0026amp;title=Route+a+Program\u0026amp;theme=bbd23582554c28c640e1d63a\u0026amp;signature=f01baab360fa9ce913658146834e7a07d8a450ca40876a30aeff267f3690653a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/classiq/Fsuml838IESUxXo8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Classiq Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#119DA4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.classiq.io/user-guide/error-correction/routing\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/user-guide/error-correction/routing.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.classiq.io/#organization\",\"name\":\"Classiq Docs\",\"url\":\"https://docs.classiq.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/classiq/KOIyvRl59wygyHwT/resources/images/ClassiqLogo_black.svg?fit=max\u0026auto=format\u0026n=KOIyvRl59wygyHwT\u0026q=85\u0026s=05c70b0722c0e3ce41855332613b7165\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.classiq.io#website\",\"name\":\"Classiq Docs\",\"url\":\"https://docs.classiq.io\",\"publisher\":{\"@id\":\"https://docs.classiq.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.classiq.io/user-guide/error-correction/routing#webpage\",\"url\":\"https://docs.classiq.io/user-guide/error-correction/routing\",\"name\":\"Route a Program\",\"dateModified\":\"2026-11-05T16:31:14.229Z\",\"isPartOf\":{\"@id\":\"https://docs.classiq.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.classiq.io/user-guide/error-correction/routing#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.classiq.io/user-guide/error-correction/routing#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Error Correction\",\"item\":\"https://docs.classiq.io/user-guide/error-correction/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Route a Program\",\"item\":\"https://docs.classiq.io/user-guide/error-correction/routing\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.classiq.io/user-guide/error-correction/routing#article\",\"headline\":\"Route a Program\",\"name\":\"Route a Program\",\"url\":\"https://docs.classiq.io/user-guide/error-correction/routing\",\"mainEntityOfPage\":{\"@id\":\"https://docs.classiq.io/user-guide/error-correction/routing#webpage\"},\"dateModified\":\"2026-11-05T16:31:14.229Z\",\"publisher\":{\"@id\":\"https://docs.classiq.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.classiq.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Classiq Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Classiq Docs","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Getting Started","pages":[{"title":"Getting Started","href":"/getting-started"}]},{"tab":"User Guide","pages":[{"title":"User Guide","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide"},{"group":"AI","expanded":false,"pages":[{"title":"AI with Classiq","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/ai/index"},{"title":"Quantum Engineering Interface","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/ai/quantum-engineering-interface"},{"title":"Quantum Engineer Plugin","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/ai/quantum-engineer-plugin"},{"title":"AI Agent in Studio","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/ai/studio-agent"}]},{"group":"Authentication","expanded":false,"pages":[{"title":"SDK Authentication","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/authentication/sdk-authentication"},{"title":"Client Credentials (M2M) Authentication","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/authentication/m2m-authentication"}]},{"group":"Modeling","expanded":false,"pages":[{"title":"Modeling","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/modeling/index"},{"title":"Quantum Numbers and Arithmetics","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/modeling/quantum-numbers-arithmetics"},{"title":"Measurements, Observables, and Hermitian Operators","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/modeling/observables-and-operators"},{"title":"Controlled Operations","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/modeling/controlled-operations"}]},{"group":"Synthesis","expanded":false,"pages":[{"title":"Quantum Program Synthesis","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/synthesis/index"},{"title":"Quantum Program Constraints","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/synthesis/constraints"},{"title":"Getting Started with Quantum Program Synthesis","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/synthesis/getting-started"},{"title":"Hardware-Aware Synthesis","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/synthesis/hardware-aware-synthesis"},{"title":"Synthesis Preferences","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/synthesis/preferences"},{"title":"Quantum Program Transpilation","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/synthesis/quantum-program-transpilation"}]},{"group":"Execution","expanded":false,"pages":[{"group":"Execution Functions","icon":"/icons/bulletsharp.svg","expanded":false,"pages":[{"title":"Execution","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/index"},{"title":"Sample","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/sample"},{"title":"Calculate State Vector","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/calculate-state-vector"},{"title":"Observe","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/observe"}]},{"title":"Execution Session","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/ExecutionSession"},{"title":"Cost Estimation","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cost-estimation"},{"group":"Hardware Benchmarking","icon":"/icons/bulletsharp.svg","expanded":false,"pages":[{"title":"Hardware Benchmarking","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/benchmarking/index"},{"title":"Predefined Benchmarks","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/benchmarking/predefined-benchmarks"}]},{"group":"Cloud Providers","icon":"/icons/bulletsharp.svg","expanded":false,"pages":[{"title":"Supported Cloud Providers","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/index"},{"title":"Execution on Alice and Bob Quantum Cloud","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/alice-and-bob-backends"},{"title":"Execution on Amazon Braket Cloud","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/amazon-backends"},{"title":"Execution on Azure Quantum Cloud","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/azure-backends"},{"title":"Execution on C12 Quantum Cloud","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/c12"},{"title":"Execution on Classiq simulators","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/classiq-backends"},{"title":"Custom noise models on Classiq simulators","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/custom-noise-models"},{"title":"Execution on Google Cloud Platform","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/google-backends"},{"title":"Execution on IBM Quantum Cloud","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/ibm-backends"},{"title":"Execution on Intel Backends","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/intel-backends"},{"title":"Execution on IonQ Quantum Cloud","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cloud-providers/ionq-backends"}]},{"title":"CUDA-Q Integration","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/cudaq_integration"},{"title":"State Vector Filtering","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/state-vector-filtering"},{"title":"Managing Execution Budget","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/execution/budget-management"}]},{"group":"Analysis","expanded":false,"pages":[{"title":"Analysis","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/analysis/index"},{"title":"Visualization of Quantum Programs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/analysis/visualization-of-quantum-programs"},{"title":"Data Analysis and Graphs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/analysis/data-analysis-and-graphs"}]},{"group":"Error Correction","expanded":false,"pages":[{"title":"Fault-Tolerance Engine","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/error-correction/index"},{"group":"Logical Noise Model","icon":"/icons/bulletsharp.svg","pages":[{"title":"Custom Noise Models","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/error-correction/logical-noise"},{"title":"Publicly Available Noise Models","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","description":null,"href":"/user-guide/error-correction/noise-models"}]},{"title":"Route a Program","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/error-correction/routing"},{"title":"Visualize the Routed Program","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","description":null,"href":"/user-guide/error-correction/visualization"},{"title":"Estimate the Total Error","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/error-correction/total-error"}]},{"group":"Studio","expanded":false,"pages":[{"title":"Studio - Web-based IDE with Classiq inside","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/studio/index"},{"title":"Getting Started with Studio","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/studio/Studio-Guide"},{"title":"Getting started with git","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/studio/git-getting-started"}]},{"group":"Applications","expanded":false,"pages":[{"group":"Block Encoding","icon":"/icons/bulletsharp.svg","expanded":false,"pages":[{"title":"Block Encoding","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/block-encoding/index"},{"title":"Constructing Block Encodings","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/block-encoding/constructing-block-encodings"},{"title":"Composing and Transforming Block Encodings","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/block-encoding/composing-block-encodings"}]},{"group":"Optimization","icon":"/icons/bulletsharp.svg","expanded":false,"pages":[{"title":"Combinatorial Optimization","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/optimization/index"},{"title":"Problem Formulation","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/optimization/problem-formulation"},{"title":"Supported Modeling","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/optimization/supported-modeling"}]},{"group":"QML","icon":"/icons/bulletsharp.svg","expanded":false,"pages":[{"title":"Quantum Machine Learning","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/qml/index"},{"group":"QNN","icon":"/icons/bulletsharp.svg","expanded":false,"pages":[{"title":"Quantum Neural Networks","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/qml/qnn/index"},{"title":"A Full Example","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/qml/qnn/a-full-example"},{"title":"Datasets","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/qml/qnn/datasets"},{"title":"Quantum Layer","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/qml/qnn/qlayer"},{"title":"Simplified Quantum Layer (QLayerV2)","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/qml/qnn/qlayerv2"},{"title":"Quantum Neural Networks (QNN)","icon":"https://mintlify.s3.us-west-1.amazonaws.com/classiq/icons/bulletsharp.svg","href":"/user-guide/applications/qml/qnn/qnn"}]}]}]}]},{"tab":"Library","pages":[{"title":"Library","href":"/explore"}]},{"tab":"Qmod Reference","pages":[{"title":"Qmod Reference","href":"/qmod-reference"}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/sdk-reference"}]},{"tab":"Support","pages":[{"title":"Support","href":"/support"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-news/recap-aug-sep-2026"}]}]},"basePath":"","title":"Route a Program - Classiq Docs","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":[],"chunks":[]}