Skip to content

Math Canonicalization#73

Closed
yhteoh wants to merge 5 commits intomainfrom
math_canonicalization
Closed

Math Canonicalization#73
yhteoh wants to merge 5 commits intomainfrom
math_canonicalization

Conversation

@yhteoh
Copy link
Copy Markdown
Collaborator

@yhteoh yhteoh commented Jun 26, 2025

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    feature

  • What is the current behavior? (You can also link to an open issue here)
    Math canonicalization incomplete and not stored with math passes

  • What is the new behavior (if this is a feature change)?

  • More robust Math canonicalization
  • Stored with other math passes
  • Added variable substitution
  • Enhanced simplification
  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

  • Other information:

Copy link
Copy Markdown
Member

@benjimaclellan benjimaclellan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread src/oqd_core/compiler/math/rules.py Outdated

class SimplifyMathExpr(RewriteRule):
"""
This simplified MathExpr objects
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just a bit more description of this rule would be helpful (plus typo)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I fixed the typo and added a little more description.

@yhteoh yhteoh marked this pull request as ready for review June 26, 2025 19:33
@yhteoh yhteoh changed the title Math canonicalization Canonicalization Jun 26, 2025
@yhteoh yhteoh closed this Jun 26, 2025
@yhteoh yhteoh deleted the math_canonicalization branch June 26, 2025 19:44
@yhteoh yhteoh changed the title Canonicalization Math Canonicalization Jun 26, 2025
@yhteoh yhteoh mentioned this pull request Jun 26, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants