QuTech-Delft / OpenSquirrel

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

Explain and possibly refine the concepts of "generator" and "arguments" #92

Closed pablolh closed 1 month ago

pablolh commented 9 months ago

Those properties tag gate semantics with how they are obtained.

For instance a BlochSphereRotation(q, axis=(1, 0, 0), angle=pi) can be

  1. anonymous, as obtained from merging two other gates (in which case there is no generator nor argument)
  2. obtained from x q, modulo irrelevant global phase difference (generator = x, arguments = (q,))
  3. obtained from rx q, pi (generator = rx, arguments = (q, pi)