For example, I want to prepare a quantum state from 0, so I need use multi controlled RY gate, like this:
How to design this gate? Any help will be appreciate!
Hi @Geralt_Rivia, welcome to the Forum!
You can use qml.ctrl to create a controlled version of an operation. If youβre looking specifically for a controlled RY you can use our CRY
operator. So you could add qml.ctrl
on top of the CRY
operation.
Please let me know if this is helpful!
1 Like
Thanks for your reply! It is very very useful!