Replies: 1 comment 2 replies
-
the julia version egg is Metatheory.jl, we use this julia impl and encounter some performance issue and we want to use the rust version to implement this 。。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Everyone,
Recently I was working using the egg for quantum gate compiling problem and encountered this scene:
I need the rfs of rule after '=>' be a function of the inputs, in the julia version of egg It's work,like this:
``` julia code ```` (https://github.com/overshiki/SymbolicCircuit.jl/blob/main/src/rule.jl)$(b) * $ (a)) where is_commute(a, b)
commute_rule = @rule a b a::Gate * b::Gate => :(
cancel_rule = @rule a b a::Gate * b::Gate => One() where is_cancel(a, b)
expand_rule = @rule a a::Gate => expand(a) where is_expand(a)
merge_rule = @rule a b a::Gate * b::Gate => merge(a, b) where is_merge(a, b)
but I can not find A corresponding implementation in this rust version egg,I read the code in tests and found the Analysis Trait maybe work but not very sure (It looks more like a trait for cost calculation method),Is there any solution? Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions