Quantum Computing Asked on July 13, 2021
I would like to know if it is possible to construct a set of quantum gates to do the following:
The objective is to create a quantum algorithm for general purpose optimization.
You need to disambiguate what you mean by "calculate a qubits whose probability of being 1 is...". Is the qubit allowed to be entangled with the others? What phase is it supposed to have?
It sounds like you're just describing an arithmetic less-than comparison. A simple way to do it is to use an adder. Take your two n-qubit inputs and run them through an n+1 qubit subtractor, then run the bottom n qubits through an n bit adder. The extra qubit that came out of the subtractor is the carry overflow and contains the result of the comparison.
Correct answer by Craig Gidney on July 13, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP