quantum icon indicating copy to clipboard operation
quantum copied to clipboard

Ansatz library brainstorming

Open gatorwatt opened this issue 4 years ago • 2 comments

The impression I got from tutorials was that in general, other than for random gates, the convention is that quantum circuit ansatz are constructed manually. (If I am mistaken about this point then please feel free to disregard.) Would it be possible to assemble a library of common ansatz architecture initialization functions that can be initialized in simpler fashion by just designating a few points like qubit count and etc? Please consider this brainstorming.

gatorwatt avatar May 06 '21 21:05 gatorwatt

This is similar to something I previously discusses, with relation to input embeddings (see https://github.com/tensorflow/quantum/issues/391). Maybe having something like a template class (similar to pennylane https://pennylane.readthedocs.io/en/stable/introduction/templates.html) which has common data encoders and circuit structures is an idea. Not sure how much work that would require, so it may or may not be worthwhile.

lockwo avatar May 07 '21 19:05 lockwo

Yeah is not clear to me how varied are types of common ansatz. The tensorflow quantum paper demonstrates a few, wasn’t sure if these forms are like authoritative accepted mainstream architectures or just starting points.

gatorwatt avatar May 07 '21 19:05 gatorwatt