QuTech-Delft / OpenSquirrel

A flexible (Python-based) quantum program compiler
Apache License 2.0
4 stars 1 forks source link

Extract duplicated code for the two wrapper functions for `named_gate` and `named_measurement` out to a single function #234

Open rturrado opened 2 months ago

rturrado commented 2 months ago

The two def wrapper functions in ir.py are almost identical.

We may be able to put their code in a common function.