Make QFT a template instead of an operation
See original GitHub issueThe QFT operation fits better as a template rather than a core operation. It can accept any number of wires and adjusts accordingly. While it has a matrix, we think of it more as a combination of gates.
Moving it would involve:
- Creating a new file in the subroutines folder
- Moving the QFT code to this file
- Adding the new template to
__init__.py
files - Adding an image of the gate decomposition, similar to other templates. This can be done with LaTeX qcircuit and converting the resulting pdf file to an SVG.
- Moving all current QFT tests to a new file in the
test_subroutines
folder - Add a card to the documentation on
doc/introduction/templates.rst
- Generally follow the adding template instructions
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Templates — PennyLane 0.28.0 documentation
Templates can be used to embed data into quantum states, to define trainable layers of quantum gates, to prepare quantum states as the...
Read more >Analytical formulation to compute QFT templates for plants ...
This paper introduces an analytical formulation to describe QFT templates based on Fourier series. This allows to calculate the template ...
Read more >QFT-Primary Source Lesson Plan Template* *Feel free to edit ...
*Feel free to edit, adapt, or amend this template as is most helpful to you. ... lesson plan for that course in order...
Read more >Specialize function template with decltype trailing return type
If you want to make your old containers work with the new range-based for loops, just provide my_container.begin() and my_container.end() member ...
Read more >Template talk:Quantum field theory - Wikipedia
1 Merge with Quantum mechanics template; 2 Spelling; 3 QFT Has Many Periods; 4 Statistical Field Theory; 5 Wrong Adler; 6 Foundations vs....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay @albi3ro .Yes,I know this issue is the part of Code Together Event and I am a participant of this hackathon.
Finally, I start working on this issue.
Thanks Best Regards Rishabh (@anonymousr007 )
https://github.com/PennyLaneAI/pennylane/pull/1537 Checkout this, this is my first pull request.