Compiler Infrastructure (bqskit.compiler)

The bqskit.compiler package implements the BQSKit’s compiler framework. This includes classes for defining, combining, executing, and managing compilation algorithms. It also includes the standard compile() function definition.

Standard BQSKit Compile Function

compile

Compile a circuit, unitary, or state with a standard workflow.

Compiler Infrastructure

BasePass

The abstract base for BQSKit compiler passes.

Compiler

A compiler is responsible for accepting and managing compilation tasks.

MachineModel

A model of a quantum processing unit.

GateSet

A set of a quantum processing unit's supported quantum gates.

GateSetLike

alias of Union[GateSet, Iterable[Gate], Gate]

PassData

A dictionary wrapper shared between all passes in a compilation run.

CompilationStatus

The status of a CompilationTask.

CompilationTask

A complete description of a quantum compilation task.

Workflow

A BQSKit workflow captures a quantum circuit compilation process.

WorkflowLike

alias of Union[Workflow, Iterable[BasePass], BasePass]