quantum-compiler / quartz

The Quartz Quantum Compiler
Apache License 2.0
76 stars 19 forks source link

[Bug] Manage parameters properly when building new contexts #165

Closed xumingkuan closed 6 months ago

xumingkuan commented 6 months ago

https://github.com/quantum-compiler/quartz/blob/30b330fdf016acfadda6e16290cb2b2bf4cbb646/src/quartz/tasograph/substitution.cpp#L491

Here we should use the same set of parameters (expressions) when creating the new context.

We should separate parameters from the Context object and probably use a shared_ptr to access the parameters.