qlasskit icon indicating copy to clipboard operation
qlasskit copied to clipboard

Evaluate constant expressions on compilation step

Open dakk opened this issue 1 year ago • 0 comments

When qlasskit parses expressions containing constants, the boolean form containing the constant is created and then optimized (if possible). A smarter approach would be to evaluate constant expression during ast2logic parsing.

This could be performed by calling eval if tleft and tright are ast.Constant in a binop.

dakk avatar Mar 28 '24 13:03 dakk