Improve support for recursively applying transformer primitives on circuit operations using deep=True
#5103
+161
−56
deep=True
#5103