Quantum Computing Asked on August 20, 2021
I am learning how to make Grover’s algorithm but the last cx gate needs to be the opposite way around. It always makes the top qubit the control, so how do you turn it around?
Just to add. If you do not have a possibility to switch control and target qubits, you can implement "upside down" CNOT with this circuit:
$$ (H otimes H) CNOT (H otimes H), $$
where $H$ is Hadamard gate and $CNOT$ is controlled NOT with control qubit upside and target qubit downside.
Answered by Martin Vesely on August 20, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP