Abstract
Quantum computing promises to provide a tremendous boost to the computational power of our machines by utilizing superposition and entanglement phenomenon of quantum mechanics. Few quantum algorithms are known which are taking advantage of these quantum phenomena and are providing solutions to problems having significant importance. In this paper, we have proposed a generalized method for designing 2N qubits circuit such that during measurement only one qubit will be in state-1, while remaining other qubits will hold state-0. Apart from adding fair randomness to the selection process in distributed quantum computing, these generalized quantum circuits can be found very useful in commercial domains requiring transparency and trust in systems requiring fair randomness in decision-making such as in a lottery system. The critical advantage of using our proposed method is that it allows individual’s results to be teleported to them, hence making an end-to-end system whose fairness is quantum assured.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
Introduction
Superposition [1] is a phenomenon in quantum mechanics where a qubit can be manipulated such that instead of having one definite state, it is present in all possible states with each having some probability of occurring. It is during the measurement phase that a qubit selects a definite state, while quantum entanglement [2, 3] is a phenomenon by which qubits are manipulated such that their outputs became correlated and cannot be represented as an output of individual qubits. Superposition and quantum entanglement are playing key roles in designing quantum algorithms and are the backbone of quantum teleportation [4]- and quantum cryptography [5]-based systems. Even though these phenomena provide significant advantage to quantum computers, in reality, very few problems [6, 7] have been figured out which can be solved effectively with quantum computing.
A computer can solve only those problems whose solution can be designed using their available gates. Similarly, in quantum computer, there are varieties of quantum gates available with each having its own characteristics and importance in designing the quantum algorithms. In this paper, we are proposing a solution to the problem of assuring fairness in random selection tasks like in lucky draw, and gambling by providing a generalized quantum algorithm.
Quantum Gates
In quantum computers, the basic unit of quantum information is called a ‘qubit’. General quantum state of a qubits is represented using its two orthonormal basis states |0〉 and |1〉.
A pure qubit is a superposition \(\left| {\varvec{\uppsi}} \right\rangle\) of the basis state, and is described using the linear combination of |0〉 and |1〉 states.
Here, \(\left| {\varvec{\upalpha}} \right|^{2}\) represents the probability of getting |0〉 state during measurement of the qubit, and \(\left| {\varvec{\upbeta}} \right|^{2}\) represents the probability of getting |1〉 state while measuring the qubit (Fig. 1).
Our proposed algorithm relies on four quantum gates including Hadamard [8], Pauli X [9], controlled Hadamard [10], and controlled NOT [11] gate.
Hadamard Gate
When a qubit present in state |0〉 or in state |1〉 is passed through the Hadamard gate, it gets transformed into a superposition of all possible states. In superposition, each state has equal probability of occurring at the time of measurement (Figs. 2, 3). This gate is represented by letter ‘H’.
When a qubit with a Hadamard transformation is passed again to the Hadamard gate, it destroys the superposition effect introduced by the first Hadamard gate (Figs. 4, 5).
Pauli X Gate
When this quantum gate is applied on a qubit, it interchanges the amplitude of its states (Fig. 6). In other words, it acts similar to the NOT gate of a digital computer. This gate is represented by letter ‘X’.
Similar to a digital NOT gate, when two consecutive ‘X’ gates are applied on input qubit, second ‘X’ gate nullifies the effect of first ‘X’ gate (Fig. 7).
Controlled Hadamard Gate
This gate consists of two input qubits where the first qubit (i.e. control qubit) decides whether or not to apply Hadamard transformation to the second (i.e. target qubit) qubit. If the control qubit is in state |1〉, then Hadamard gate is applied on the second qubit, else no transformation is performed (Fig. 8). This gate is represented by letters ‘CH’.
Controlled NOT Gate
Controlled NOT gate also have a control qubit and a target qubit. When control qubit holds state |1〉, Pauli X gate is applied to the target qubit (Fig. 9). Controlled NOT gate is represented by letters ‘CX’ or ‘CNOT’.
Quantum Entanglement
Quantum entanglement is a physical phenomenon because of which quantum states of each particle cannot be described independent of each other. This phenomenon still persists even if the entangled particles are separated to a greater distance.
Two qubits initialized to |0〉 state can be entangled with positive correlation using CNOT and Hadamard quantum gates. In positive correlated entanglement, output of both the qubits during measurement remains same, i.e. either both are in |0〉 state or both are in |1〉 state (Fig. 10).
While designing two entangled qubits (both initialized to |0〉) with negative correlation, an additional Pauli X gate is applied on the target qubit of CNOT gate. In negative correlated entanglement, output of both the qubits during measurement remains opposite to each other. If one is measured as |0〉 state, then the other will always be in |1〉 state (Fig. 11).
Trust Issues with Lucky Draw-Based Systems
Lucky draw is supposed to be an activity of randomly selecting a winner from the available pool of candidates. Ideally, it is supposed that such type of systems will not have any preferential bias towards any participant, but depending on the intensity of preferential bias, all available lucky draw systems can be manipulated at some stage to profit an individual or group of individuals.
Digital systems can be easily manipulated by the authorities to provide desired output in lucky draw, and other randomness-based gambling systems. Depending on the influence one group have on the digital system random function’s source code, outcome of the digital system can be controlled or altered (Fig. 12).
Although quantum superposition can be used for having fair randomness for selecting a winner from the list of participants, to perform this operation, Hadamard gates are applied on N qubits (all initialized to |0〉 state) to provide equal chance of selecting one candidate out of 2N total candidates. Although it requires a smaller number of qubits, this approach is not completely quantum assured because no-cloning theorem [12] does not allow the obtained result to be directly teleported to multiple candidates. Thus, the results have to be sent to a classical computer to broadcast it to all the participants. Involvement of digital computer makes this approach vulnerable to alteration (Fig. 13).
Instead of providing a single result, our proposed approach provides results for the entire participants about whether they are the winner or not. This makes it impossible to alter the obtained results by individual(s), and also because we are not sending multiple copies of same result, this enables us to teleport the individual’s result to them and making the entire process completely based on quantum computers (Fig. 14).
Proposed Algorithm
Ensuring fairness in random decision-making helps in establishing trust among its users, especially in events like lottery and lucky draw, where the system can be easily altered to directly or indirectly profit an individual or group of individuals. Our proposed quantum circuit designing algorithm randomly provides one qubit with state-1 and the remaining with state-0 while ensuring fairness at each level of random decision-making. Its architecture allows the results to be teleported to other quantum systems for performing further tasks, or even teleporting results directly to the clients which make the system end-to-end quantum secured (Table 1).
Output state produced by our proposed algorithm with 2N quantum bits presents equal chances of one qubit holding |1〉 state, while remaining 2N − 1 qubits hold |0〉 . For example in the system of two participants (output state is represented using |φ〉), one qubit always holds |1〉 state and remaining holds |0〉 state.
Working Demonstration
Proposed algorithm is implemented using QISKit Library [13] of IBM, and its source code is available in our GitHub repository [14]. For better understanding of the proposed algorithm, two working demonstrations of our algorithm are also provided.
Working Demonstration with Four Participants
To perform random selection among four participants, our proposed algorithm requires four quantum bits (i.e. qubit[] array indexing from 0 to 3) (Fig. 15, Table 2).
Output state |φ〉 has one qubit in |1〉 state, while remaining holds |0〉 state.
Working Demonstration with Eight Participants
Our proposed algorithm requires eight quantum bits to perform fair random selection among eight participants (i.e. qubit[] array is indexed from 0 to 7) (Table 3; Fig. 16).
Output state |φ〉 has one qubit in |1〉 state, while remaining holds |0〉 state.
These manipulated qubits can further be teleported (or sent) to the individual participants making our end-to-end system relying only on quantum phenomenon which in turn ensures fairness in each step of our proposed algorithm.
Conclusion
Our proposed quantum algorithm provides a solution to the problem of fair random selection among small number of participants, and has the potential to be used in commercial domains requiring quantum assurance for the random selection tasks. Due to the complete random nature of quantum, it can be used in activities involving lucky draw, and any other similar form of activity dependent on random selection task.
Change history
28 September 2023
A Correction to this paper has been published: https://doi.org/10.1007/s42979-023-02168-3
References
De Ronde C. Quantum superpositions and the representation of physical reality beyond measurement outcomes and mathematical structures. Found Sci. 2016;19:1–28.
Witten E. Notes on some entanglement properties of quantum field theory; 2018. arXiv preprint arXiv:1803.04993.
Hadjiivanov L, Todorov I. Quantum entanglement. 2015. arXiv preprint arXiv:1506.04262.
Luo H, Yuan J, Dai W. A new universal quantum gates and its simulation on GPGPU. In: International conference on cloud computing and security. Cham: Springer; 2017. p. 16–27.
Wu C, Yang L. Qubit-wise teleportation and its application in public-key secret communication. Sci China Inf Sci. 2017;60(3):032501.
Grover LK. A fast quantum mechanical algorithm for database search. In: Proceedings of the 28th annual ACM symposium on theory of computing. ACM; 1996. p. 212–9.
Shor PW. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Rev. 1999;41(2):303–32.
Tipsmark A, Dong R, Laghaout A, Marek P, Ježek M, Andersen UL. Experimental demonstration of a Hadamard gate for coherent state qubits. Phys Rev A. 2011;84(5):050301.
Williams CP. Quantum gates. In: Explorations in quantum computing. London: Springer; 2011. p. 51–122. https://www.springer.com/gp/book/9781846288869#aboutBook.
Vishnu PK, Joy D, Behera BK, Panigrahi PK. Experimental demonstration of non-local controlled-unitary quantum gates using a five-qubit quantum computer. Quantum Inf Process. 2018;17(10):274.
Saeedi M, Zamani MS, Sedighi M. Algebraic characterization of CNOT-based quantum circuits with its applications on logic synthesis. 2007. arXiv preprint arXiv:0712.2963.
Wootters WK, Zurek WH. The no-cloning theorem. Phys Today. 2009;62(2):76–7.
Github repository. https://github.com/qiskit. Accessed 8 Feb 2019.
Github repository. https://github.com/mr-ravin/QrandomSelection. Accessed 8 Feb 2019.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
This article is part of the topical collection “Advances in Computational Intelligence, Paradigms and Applications” guest edited by Young Lee and S. Meenakshi Sundaram.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Kumar, R. A Generalized Quantum Algorithm for Assuring Fairness in Random Selection Among 2N Participants. SN COMPUT. SCI. 1, 86 (2020). https://doi.org/10.1007/s42979-020-0091-z
Published:
DOI: https://doi.org/10.1007/s42979-020-0091-z