Skip to content

Evaluation of MathExpr objects should be done during canonicalization #34

@Sehmimul

Description

@Sehmimul

Overview

Currently there is a transformer (EvaluateMathExpr) which does evaluation of MathExpr objects: https://github.com/OpenQuantumDesign/midstack/blob/13ed42c7c0e37ce6078727403727d18464454f9f/quantumion/compiler/math.py#L25
The logic of this transformer can be move to VerificationFlow graph:
https://github.com/OpenQuantumDesign/midstack/blob/13ed42c7c0e37ce6078727403727d18464454f9f/quantumion/compiler/analog/verification_flow.py#L114
so that the MathExpr objects can be simplified during the Canonicalization process.

Fix

Add a subgraph in VerificationFlow graph to canonicalize and evaluate MathExpr objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmildThis issue or pull request is not critical at the moment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions