Closed xumingkuan closed 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.
Context
shared_ptr
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 ashared_ptr
to access the parameters.