qir-alliance / pyqir

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).
https://qir-alliance.github.io/pyqir
MIT License
54 stars 24 forks source link

Remove TypeFactory #195

Closed bamarsha closed 1 year ago

bamarsha commented 1 year ago

With the type constructors added in #180, there are now two ways to make types. We should remove TypeFactory and make the normal constructors the only way. A context property needs to be added to SimpleModule so it can be passed to the type constructors when adding external functions to SimpleModules.