Hostname: page-component-74656f9884-rdgjk Total loading time: 0 Render date: 2026-11-07T04:24:57.246Z Has data issue: false hasContentIssue false

Evolving blackbox quantum algorithms using genetic programming

Published online by Cambridge University Press:  12 June 2008

Ralf Stadelhofer
Affiliation:
Department of Computer Science, University of Dortmund, Dortmund, Germany
Wolfgang Banzhaf
Affiliation:
Department of Computer Science, Memorial University of Newfoundland, St. John's, Canada
Dieter Suter
Affiliation:
Department of Physics, University of Dortmund, Dortmund, Germany
Rights & Permissions [Opens in a new window]

Abstract

Although it is known that quantum computers can solve certain computational problems exponentially faster than classical computers, only a small number of quantum algorithms have been developed so far. Designing such algorithms is complicated by the rather nonintuitive character of quantum physics. In this paper we present a genetic programming system that uses some new techniques to develop and improve quantum algorithms. We have used this system to develop two formerly unknown quantum algorithms. We also address a potential deficiency of the quantum decision tree model used to prove lower bounds on the query complexity of the parity problem.

Information

Type
Research Article
Copyright
Copyright © Cambridge University Press 2008
Figure 0

Fig. 1. A classical decision tree that computes the parity p(X) of the blackbox.

Figure 1

Fig. 2. A quantum circuit is represented by a linear list (linear genome) of the quantum gates used. The sequence of quantum gates is obtained by reading this linear list from left to right. H [1] denotes a Hadamard gate H that is applied to qubit 1. CNOT [0 1] denotes a CNOT gate where qubit 0 is the control qubit and qubit 1 is the target qubit.

Figure 2

Table 1. Measurement probabilities for a fictive quantum circuit

Figure 3

Table 2. Results obtained from Table 1 by setting the binary value bi1i0 = 1 if p(|i1i0〉) > 1/4

Figure 4

Table 3. Parameters of the GP system that evolved the circuits in Section 4.1 and 4.2.

Figure 5

Fig. 3. This graph shows the length distribution (first, second, and third quartiles) of the best individual in each generation for 60 independent runs of the GP system for the n = 3 qubit parity problem. The optimal algorithm is presented in the lower part of Fig. 4. A horizontal bar denotes the median (second quartile). The lower, upper end of each box indicates the first, third quartile, respectively.

Figure 6

Fig. 4. These two exact parity circuits for n = 2 qubits (top) and n = 3 (bottom) qubits found by the GP system were sufficient to extract the general scaling mechanism for an arbitrary number of qubits (see Stadelhofer et al., 2005).

Figure 7

Fig. 5. Mixed-state parity circuits found by the GP system for n = 2 (top) and n = 3 (bottom) qubits. The (π/2)y-gate corresponds to the rotation Ry(π/2). The measurement-gate symbolizes a measurement of the magnetization along the x axis. In both cases one measures 〈Ix(0)〉 = 0 if p(X) = 1 and 〈Ix(0)〉 = ±ω0/4 if p(X) = 0.

Figure 8

Fig. 6. This circuit distinguishes between blackboxes X ∈ A and blackboxes X ∈ B by mapping the initial state |ψinit〉 = |00〉 of the query register to the final state |ψfin〉 = |00〉 if X ∈ A, otherwise, the state |00〉 of the query register has a probability amplitude of zero. The gate σy is realized by Ry(π): σy = Ry(π).

Figure 9

Fig. 7. This circuit distinguishes between blackboxes X ∈ A and blackboxes X ∈ B by mapping the state |ψinit〉 = |000〉 of the query register to the final state |ψfin〉 = |000〉 if X ∈ A, otherwise, the state |000〉 of the query register has a probability amplitude of zero.

Figure 10

Fig. 8. Generalized circuit on (n + 1) qubits. The upper n qubits encode i ∈ {0, 1, … , 2n − 1}; Σ abbreviates the gate sequence CNOT0.1 − CNOT1.2 −⋯− CNOTn−2,n−1 − CNOTn−1,0. CNOTl,m denotes a CNOT gate where qubit l is the control qubit and qubit m the target qubit. This circuit distinguishes between blackboxes X ∈ A and blackboxes X ∈ B by mapping the initial n-qubit state |ψinit〉 = |0⋯0〉 of the query register to the final state |ψfin〉 = |0⋯0〉 if X ∈ A, otherwise, the state |0⋯0〉 of the n-qubit query register has a probability amplitude of zero.

Figure 11

Fig. A.1. Modified instance of the ensemble quantum circuit, shown in the upper part of Fig. 5, for a single issue QC. Measurement of the magnetization is replaced by a measurement in the computational basis. As shown in [2, 17] any exact or probabilistic QA would need N/2 oracle gates with N = 2n where n denotes the number of query qubits. In our example this corresponds to 2 oracle gates instead of the single oracle gate used by our circuit.