A 1-Qubit Quantum Neural Network for NOT, AND, OR, NAND, NOR, XOR, and XNOR
Mirza Nur Hidayat, Muhammad Faruq Nuruddinsyah
Abstract
In this paper, we implement a single-qubit quantum neural network to realise all Boolean logic functions. The circuit consists of four quantum rotation gates: two at the beginning as a quantum feature map of the dense angle encoding type, and the last two gates as the ansatz. The optimal parameters in the ansatz are determined using an iterative method, yielding expectation values that match the desired values and enabling Boolean output predictions. Our results demonstrate that the single-qubit parametric circuit, constructed with optimal parameter values obtained from iterative optimisation, is capable of implementing all Boolean logic functions.