This excerpt from Chapter 5 describes some of the basic quantum logic gates used in quantum computing, and shows how quantum circuits can be used to represent a number of problems from quantum economics and finance in a simplified manner.
We are now ready to see how computing with qubits can be done. In this book, we will mainly use the circuit model for computation which was first introduced by Deutsch [25]. We will represent by quantum “wires,” the qubits upon which manipulations. The length of the wire is to be interpreted as the time axis. Manipulations on qubits can be done using basic unitary operators that are the equivalents of logic “gates.” An algorithm, or a complete set of steps for achieving a processing task, is a combination of wires and gates representing a quantum circuit. This circuit must be thought of as a time sequence of events with every wire a way of representing qubit states, and with gates representing processing of those states.
From the quantum images and their preparation methods described in Chapter 2, it can be seen that preparing a quantum image requires a large number of basic quantum gates. For example, to prepare a quantum color image Quantum Image Representation based on HSI (QIRHSI) with a size of https://www.w3.org/1998/Math/MathML" display="inline"> 2 8 × 2 8 pixels and an intensity value range of https://www.w3.org/1998/Math/MathML" display="inline"> 0 ∼ 2 8 − 1 , approximately the number of basic quantum gates required is 2 64 . Therefore, in this chapter, the resources for image preparation will be optimized. The principle of Boolean expression minimization will be used to simplify the quantum circuit in the quantum image QIRHSI. In essence, it is to replace the original preparation of the quantum image with a new unitary transformation that has fewer quantum logic gates.