transpile

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package transpile provides the quantum circuit transpilation framework.

A Pass is a function that transforms a circuit for a given hardware target. Use Pipeline to compose multiple passes into a single sequential pass. Individual pass implementations live in the pass sub-package; pre-built optimization pipelines are in pipeline.

Package transpile provides the quantum circuit transpilation framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasisName

func BasisName(g gate.Gate) string

BasisName returns the canonical basis gate name for a gate. Strips parameters: "RZ(0.78)" -> "RZ", "CNOT" -> "CX". Multi-controlled: "C3-X" -> "C3-X", "C2-RZ(0.78)" -> "C2-RZ".

Types

type Pass

type Pass func(c *ir.Circuit, t target.Target) (*ir.Circuit, error)

Pass transforms a circuit for a given target.

func Pipeline

func Pipeline(passes ...Pass) Pass

Pipeline composes passes into a single sequential pass.

Directories

Path Synopsis
Package analysis provides circuit analysis helpers for transpilation passes.
Package analysis provides circuit analysis helpers for transpilation passes.
Package decompose provides gate decomposition algorithms for single-qubit and two-qubit unitaries.
Package decompose provides gate decomposition algorithms for single-qubit and two-qubit unitaries.
Package pass provides individual transpilation passes for circuit optimization and target compliance.
Package pass provides individual transpilation passes for circuit optimization and target compliance.
Package pipeline provides pre-built transpilation pipelines with four optimization levels, following the industry-standard quantum compilation flow: init → pre-route optimize → route → translate → optimize → validate.
Package pipeline provides pre-built transpilation pipelines with four optimization levels, following the industry-standard quantum compilation flow: init → pre-route optimize → route → translate → optimize → validate.
Package routing inserts SWAP gates to satisfy hardware connectivity constraints using the SABRE algorithm.
Package routing inserts SWAP gates to satisfy hardware connectivity constraints using the SABRE algorithm.
Package target defines hardware target descriptions for transpilation.
Package target defines hardware target descriptions for transpilation.
Package verify checks circuit equivalence using statevector simulation.
Package verify checks circuit equivalence using statevector simulation.

Jump to

Keyboard shortcuts

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