-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add supports for more basic operations and layers #134
Comments
Hi, |
Hi, @Hanrui-Wang |
Hi bopardikarsoham, Yes, ansatz layers/N-local layers are also very important so they are highly encouraged! When you implement RealAmplitudes, EfficientSU2, Two-Local, it would be better to also have similar hierarchy of classes as qiskit. |
Adding more gates, for issue #134
I add a PR for QFT in #142 |
Made changes and Added basic gates for issue #134 |
Congrats @pandey-tushar, @bopardikarsoham and @dhanvi-bharadwaj for successfully merged the pull requests and thank you for your contributions! Since UnitaryHack comes to an end, I will close this issue but we will very appreciate if you can continue to contribute to new functionalities in torchquantum! |
In order to enrich the supported operations of tq, we need your help on adding more functionalities.
Please firstly identity the gates that have not been supported by torchquantum, you can find them by having a look at other frameworks such as Qiskit, Cirq etc. You can identity the gates that not supported by looking at qiskit.circuit.library.
Such as the SdG gate:
SdgGate
For the simplest non-parameterized gates, you need firstly add their unitary matrix to tq.functional file:
torchquantum/torchquantum/functional.py
Line 1104 in 8d06a99
You may also implement other template layers according to qiskit.circuit.library. https://qiskit.org/documentation/apidoc/circuit_library.html
Please let us know if you have any questions or need any instructions!
The text was updated successfully, but these errors were encountered: