IRTransformation

class IRTransformation : public xacc::Identifiable

The IRTransformation interface provides a method that subclasses may implement to modify, transform, optimize, or translate the provided IR, producing a new IR instance that is isomorphic to the input IR.

Subclassed by xacc::quantum::CircuitOptimizer

Public Functions

virtual std::shared_ptr<IR> transform(std::shared_ptr<IR> ir) = 0

Transform the given IR into a new isomorphic IR.

Return

newIr Transformed IR

Parameters
  • ir: Input IR to modify

virtual ~IRTransformation()

The destructor