qbraid.transpiler

Module providing unified conversions interface between supported quantum program types.

Classes

Conversion(source, target, conversion_func)

Class for defining and handling custom conversions between different quantum program packages.

ConversionGraph([conversions, ...])

Class for coordinating conversions between different quantum software programs

ConversionScheme([conversion_graph, ...])

A data class for managing conversion configurations for quantum device operations.

Functions

transpile(program, target[, ...])

Transpile a quantum program to a target language using a conversion graph.

requires_extras(dependency)

Decorator factory to mark conversion functions that require additional dependencies beyond their "{source}_to_{target}" naming convention.

Exceptions

ProgramConversionError

Base class for errors raised while converting a circuit.

NodeNotFoundError(graph_type, package, nodes)

Class for errors raised when a node is not present in a ConversionGraph.

ConversionPathNotFoundError(source, target)

Class for errors raised when there is no path between two nodes in a ConversionGraph.

Submodules

conversions

Module containing one-step functions for converting between supported quantum software program types.