In the last line we should have UGate(self.theta, self.phi, self.lambd) | q. And everywhere else we're calling the UGate/u3/u2/etc from within class methods.
@meamy can you please double-check when you get a chance? I think the same happens with the other python-like APIs (such as e.g. Circ)
When transpiling from OpenQASM to ProjectQ the minimal example
the code produced is
I think there are some
self.
missing (at least PyCharm is complaining), such asIn the last line we should have
UGate(self.theta, self.phi, self.lambd) | q
. And everywhere else we're calling theUGate/u3/u2/etc
from within class methods.@meamy can you please double-check when you get a chance? I think the same happens with the other python-like APIs (such as e.g. Circ)