Template Class Pass

Inheritance Relationships

Derived Types

Class Documentation

template<typename IrType>
class Pass

A base class for a Pass (implementing some form of transformation on the input IR tree)

Subclassed by qb::noise_aware_placement_pass, qb::optimization_pass, qb::swap_placement_pass

Public Functions

virtual ~Pass() = default

Destructor.

virtual std::string get_name() const = 0

Returns the derived pass name.

inline virtual std::string get_description() const

Returns the pass description for this pass. (derived class to add if wanted to)

virtual void apply(IrType &circuit) = 0

Polymorphic API that runs the pass over the circuit IR node.