rigetti / pyquil

A Python library for quantum programming using Quil.
http://docs.rigetti.com
Apache License 2.0
1.4k stars 342 forks source link

DEFCIRCUIT is not implemented as an AbstractInstruction #876

Open karalekas opened 5 years ago

karalekas commented 5 years ago

Lack of feature parity between Quil <-> pyQuil (along with things like CONTROLLED and DAGGER).

braised-babbage commented 4 years ago

Also, Program maintains gate definitions separately from the "executable code" (Program.instructions). Perhaps this would also be appropriate for circuit definitions?

karalekas commented 4 years ago

@kilimanjaro do you think that the current behavior (maintaining gate definitions separately) is useful? I know it's caused some headaches in terms of copying Program objects before, and I don't know the original reasoning behind it