Q NeuroEvolution Arxiv
Q NeuroEvolution Arxiv
Q NeuroEvolution Arxiv
net/publication/348409470
CITATIONS READS
0 89
3 authors, including:
All content following this page was uploaded by Zhide Lu on 12 January 2021.
. . .
. . .
architecture
the past two decades [5, 6] and many problems that were noto-
riously challenging for artificial intelligence, such as playing
the game of Go [7, 8] or predicting protein structures [9], have
been cracked recently. This gives rise to new opportunities Depth-1
Gate-block
. . .
. . .
circuit
for using machine learning techniques to solve difficult prob-
lems in quantum science. Indeed, machine learning ideas and
tools have been invoked in various applications in quantum 0 1 ··· 0
physics, including representing quantum many-body states 0 0 ··· 1
The relation Prior Next
.. .. .. ..
. . .
. . .
. . .
[10, 11], quantum state tomography [12, 13], non-locality de- between blocks block block . .
. .
tection [14], topological quantum compiling [15], and learn- 1 0 ··· 0
ing phases of matter [16–26], etc. On the other hand, the idea
of quantum computing has revolutionized the theories and im-
Circuit sequence Block-1 Block-n
. . .
. . .
. . .
plementations of computation [27]. New quantum algorithms
may offer unprecedented prospects to enhance, speed up, or
innovate machine learning as well [28–35]. Without a doubt,
the studies of the interplay between machine learning and
quantum physics will benefits both fields and the emergent re- TABLE I. Illustration of the graph-encoding method, based on which
search frontier of quantum machine learning has become one the problem of searching the optimal quantum circuits reduces to
a task of finding paths (such as the one with the red color) in the
of today’s most rapidly growing interdisciplinary fields [1–4].
corresponding directed graphs.
An intriguing approach widely studied in quantum machine
learning is to exploit the hybrid quantum-classical scheme,
where parameterized quantum circuits are optimized with intermediate-scale quantum (NISQ) devices [59], where the
classical methods (such as stochastic gradient descent) to sat- depth of the quantum circuits would be limited due to unde-
isfy certain objective functions. Notable examples in this sirable noises carried by such a device. In the classical ma-
category include various quantum classifiers [35–49], varia- chine learning literature, several renowned algorithms have
tional quantum eigensolver [50–53], quantum Born machines been proposed to search for appropriate neural network archi-
[54, 55], and quantum approximation optimization algorithms tectures [60–72], including evolutionary or genetic algorithms
[56–58]. In this scenario, one typically choose a variational (such as NeuroEvolution of Augmenting Topologies, NEAT)
ansatz circuit with fixed structure and then optimize its tunable [62], greedy algorithms [64], reinforcement learning based al-
parameters to tackle the given problem. Yet, different families gorithms [65–68], and differentiable architecture search [69–
of parameterized quantum circuits may bear distinct entan- 72]. Inspired by these algorithms, analogous quantum archi-
gling capabilities and representation power, thus are suitable tecture search algorithms have also been introduced [73–82].
for different tasks. For a given learning task, how to obtain a Each of these algorithms carries its own pros and cons, and
well-performing ansatz circuit as short as possible is of cru- the choice depends on the specific problem.
cial importance, especially for quantum learning with noisy In this paper, we introduce a quantum neuroevolution al-
2
Rx R R R R build
…………
QML
determine Block Library find Paths evolve Fitness
Problem
map
R
Permitted
Rx Rx R Rx R Directed Graph
Circuit
Rx R R R generations > gc Sequence-n
Accuracy
Input: The directed graph, hyperparameters ni , ti , l, l0 , fc , and gc 0.8
Fitness
validation loss
Loss
0.7
Output: The optimal quantum circuit architecture the highest fitness 0.7 0.60
0.6
Initialization: randomly generate n1 length-l paths, and compute 0.5 0.6 training accuracy
all populations validation accuracy 0.55
the fitness of their corresponding circuits 0.4
1 2 3 4 5 6 7 8 9 1011 1213
0.5
0 50 100 150 200
for i = 1 to gc do 1.0 (c) 1.0
(d) 0.70
Choose the ti (ti < ni ) paths with highest fitness 0.9 0.9
Evolution: produce paths in the (i + 1)-th generation by con- 0.8 training accuracy 0.65
Accuracy
0.8
Fitness
catenating ni+1 segments of length l0 to each of the ti paths;
Loss
0.7 validation accuracy
the highest fitness 0.7 0.60
compute the fitness for the paths in the (i + 1)-th generation 0.6
0.6 training loss
if max [fitness (paths)] ≥ fc then 0.5 all populations validation loss 0.55
Terminate the iteration 0.4 0.5
1 2 3 4 5 6 7 8 9 10 11 0 50 100 150 200
end if Generations Epochs
end for
Output the optimal quantum circuit FIG. 2. The numerical results for classification of handwritten-digit
images in the MNIST dataset. In (a), the initial variational param-
eters are randomly chosen during the training process. In (b), we
plot the loss and accuracy as a function of training epochs for the
√ √ sixth-generation quantum circuit with the highest fitness. (c) shows
(1+ 3)k+1 −(1− 3)k+1
√
2 3
[85]. These gate-blocks form a gate- the fitness of generated circuits for each generation with fixed ini-
block library and we use a directed graph to represent this tial variational parameters and (d) plots the loss and accuracy for the
library. Each node of the graph corresponds to a gate block, eighth-generation circuit that has largest fitness [85].
and each directed edge represent a legitimate connections of
gate-blocks according to the connection rules: there is an edge
pointing from node x to y if and only if the gate-block y is al- size of the graph, we can impose some further restrictions on
lowed to be put next to gate-block x. For convenience, we use building possible gate-blocks. For instance, we may require
an adjacency matrix to denote the directed graph as in graph that for each gate-block there are at most c (a cut-off constant
theory [86]. Noting that a quantum circuit is just a sequence of number) controlled-Rx gates and the rest qubits all undergo
gate-blocks in the corresponding library, hence the task of de- single-qubit rotations. With these restrictions, the number of
signing a well-performing ansatz variational quantum circuit possible gate-blocks reduces to a polynomial function of k
reduces a problem of finding an optimal path in the directed [85]. Accordingly, the size of the directed graph is also re-
graph. The later problem can be solved with the following duced. However, it is worthwhile to mention that the reduc-
procedure: 1) Initialization. we randomly generate n1 paths tion of the graph may also bring up a problem: we may not
with length l based on the directed graph, and compute the fit- be able to find the optimal ansatz circuits since the searching
ness of the corresponding variational quantum circuits; 2) It- space is reduced too much by the restrictions. In the follow-
eration in a Markovian fashion. From the i-th generation, we ing, we give a couple of concrete examples to benchmark the
choose ti paths with the largest fitness and for each of them effectiveness of our MQNE algorithm.
randomly add to its end ni+1 segments of length l0 . Due to Classification of handwritten-digit images.—The first ex-
the connection rules, not all possible segments can be added ample we consider is the classification of handwritten-digit
at will to the existed paths. Whether a new segment is al- images in the MNIST dataset. This is a prototypical machine
lowed to be added depends on the last gate-block of the given learning task for benchmarking the effectiveness of various
paths, which is similar to a Markovian process. In this way, learning approaches. The MNIST dataset consists of gray-
we obtain the (i + 1)-th generation of paths. We then com- scale images for handwritten digits from 0 through 9. Each
pute the fitness of all (i + 1)-th generation quantum circuits. image is two dimensional, and contains 28×28 pixels. For our
If the fitness of a circuit is larger than certain given threshold purpose, we choose only a subset of MNIST consisting of im-
value fc (or the number of iteration exceed a given number ages for digits 1 and 9 and reduced the size of the images from
gc ), we terminate the iteration and output the corresponding 28×28 pixels to 16×16 pixels, so that we can run our MQNE
path and quantum circuit. If none of the circuits has a fitness algorithm and simulate the quantum classifiers generated with
larger than fc , we repeat this step to generate paths and cir- moderate classical computational resources. In addition, we
cuits for the next generation. A schematic illustration and the use amplitude encoding to map the input images into quantum
pseudocode for our MQNE algorithm are given in Fig. 1 and states and define the following loss function based on cross-
Algorithm S2, respectively. entropy for a single data sample encoded as |ψiin (see [87] for
more details):
We note that the number of nodes of the directed graph
scales exponentially with the number of qubits involved L (h (|ψiin ; Θ) , a) = −a1 log g1 − a2 log g2 , (1)
f1 (k) = Θ(2k ). For large k, the size of the graph might
exceeds the capacity of the any classical computer, render- where a = (a1 , a2 ) = (1, 0) or (0, 1) denotes the one-hot
ing our MQNE algorithm infeasible in practice. To reduce the encoding [88] of the label of |ψiin , h (|ψiin ; Θ) represents the
4
tum machine learning have revealed that quantum classifiers T. Graepel, and D. Hassabis, Mastering the game of Go with
are highly vulnerable to adversarial attacks—adding a tiny deep neural networks and tree search, Nature 529, 484 (2016).
amount of carefully crafted perturbations into the original le- [8] D. Silver, J. Schrittwieser, K. Simonyan, I. Antonoglou,
gitimate data will cause the quantum classifiers to make incor- A. Huang, A. Guez, T. Hubert, L. Baker, M. Lai, A. Bolton,
Y. Chen, T. Lillicrap, F. Hui, L. Sifre, G. van den Driessche,
rect predictions [87, 94]. Thus, how to enhance the robustness T. Graepel, and D. Hassabis, Mastering the game of Go without
of quantum classifiers to adversarial perturbations is a prob- human knowledge, Nature 550, 354 (2017).
lem of vital importance for practical applications of quantum [9] A. W. Senior, R. Evans, J. Jumper, J. Kirkpatrick, L. Sifre,
learning in the future. With the MQNE algorithm, a possi- T. Green, C. Qin, A. Žı́dek, A. W. R. Nelson, A. Bridgland,
ble solution to this problem is to design ansatz circuits that H. Penedones, S. Petersen, K. Simonyan, S. Crossan, P. Kohli,
are more robust to the given type of adversarial attack. This D. T. Jones, D. Silver, K. Kavukcuoglu, and D. Hassabis, Im-
could be achieved by replacing the original loss function [e.g. proved protein structure prediction using potentials from deep
learning, Nature 577, 706 (2020).
Eq. (1)] with a modified one that incorporates the adversarial [10] G. Carleo and M. Troyer, Solving the quantum many-body
perturbations [95]. In addition, the graph-encoding method problem with artificial neural networks, Science 355, 602
would also be combined with other evolution or genetic al- (2017).
gorithms to construct optimal circuit structures for different [11] X. Gao, Z. Zhang, and L. Duan, An efficient quantum algorithm
quantum learning problems. for generative machine learning, arXiv:1711.02038.
In summary, we have introduced a quantum neuroevolu- [12] G. Torlai, G. Mazzola, J. Carrasquilla, M. Troyer, R. Melko,
and G. Carleo, Neural-network quantum state tomography, Nat.
tion algorithm, named the MQNE algorithm, to design opti- Phys. 14, 447 (2018).
mal variational ansatz quantum circuits for different quantum [13] J. Carrasquilla, G. Torlai, R. G. Melko, and L. Aolita, Recon-
learning tasks. Through concrete examples involving clas- structing quantum states with generative models, Nat. Mach.
sifications of real-life images and SPT quantum states, we Intell. 1, 155 (2019).
demonstrate that the MQNE algorithm performs excellently in [14] D.-L. Deng, Machine Learning Detection of Bell Nonlocality
searching appropriate quantum classifiers. It finds ansatz cir- in Quantum Many-Body Systems, Phys. Rev. Lett. 120, 240402
cuits with notably smaller depths and number of gates, while (2018).
[15] Y.-H. Zhang, P.-L. Zheng, Y. Zhang, and D.-L. Deng, Topolog-
maintaining a comparable classification accuracy. Our results ical Quantum Compiling with Reinforcement Learning, Phys.
provide a valuable guide for experimental implementations of Rev. Lett. 125, 170501 (2020).
quantum machine learning with NISQ devices. [16] Y. Zhang and E.-A. Kim, Quantum Loop Topography for Ma-
We acknowledge helpful discussions with Weikang Li, chine Learning, Phys. Rev. Lett. 118, 216401 (2017).
Wenjie Jiang, and Sirui Lu. This work is supported by [17] J. Carrasquilla and R. G. Melko, Machine learning phases of
the start-up fund from Tsinghua University (Grant. No. matter, Nat. Phys. 13, 431 (2017).
[18] E. P. L. van Nieuwenburg, Y.-H. Liu, and S. D. Huber, Learning
53330300320), the National Natural Science Foundation of
phase transitions by confusion, Nat. Phys. 13, 435 (2017).
China (Grant. No. 12075128), and the Shanghai Qi Zhi Insti- [19] L. Wang, Discovering phase transitions with unsupervised
tute. learning, Phys. Rev. B 94, 195105 (2016).
[20] P. Broecker, J. Carrasquilla, R. G. Melko, and S. Trebst, Ma-
chine learning quantum phases of matter beyond the fermion
sign problem, Sci. Rep. 7, 8823 (2017).
[21] K. Ch’ng, J. Carrasquilla, R. G. Melko, and E. Khatami, Ma-
∗
These authors contributed equally to this work. chine Learning Phases of Strongly Correlated Fermions, Phys.
†
dldeng@tsinghua.edu.cn Rev. X 7, 031038 (2017).
[1] S. Das Sarma, D.-L. Deng, and L.-M. Duan, Machine learning [22] Y. Zhang, R. G. Melko, and E.-A. Kim, Machine learning Z2
meets quantum physics, Phys. Today 72, 48 (2019). quantum spin liquids with quasiparticle statistics, Phys. Rev. B
[2] J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, 96, 245119 (2017).
and S. Lloyd, Quantum machine learning, Nature 549, 195 [23] S. J. Wetzel, Unsupervised learning of phase transitions: From
(2017). principal component analysis to variational autoencoders, Phys.
[3] V. Dunjko and H. J. Briegel, Machine learning & artificial in- Rev. E 96, 022140 (2017).
telligence in the quantum domain: A review of recent progress, [24] W. Hu, R. R. P. Singh, and R. T. Scalettar, Discovering phases,
Rep. Prog. Phys. 81, 074001 (2018). phase transitions, and crossovers through unsupervised ma-
[4] G. Carleo, I. Cirac, K. Cranmer, L. Daudet, M. Schuld, chine learning: A critical examination, Phys. Rev. E 95, 062122
N. Tishby, L. Vogt-Maranto, and L. Zdeborová, Machine learn- (2017).
ing and the physical sciences, Rev. Mod. Phys. 91, 045002 [25] Y. Zhang, A. Mesaros, K. Fujita, S. D. Edkins, M. H. Hamidian,
(2019). K. Ch’ng, H. Eisaki, S. Uchida, J. C. S. Davis, E. Khatami,
[5] Y. LeCun, Y. Bengio, and G. Hinton, Deep learning, Nature and E.-A. Kim, Machine learning in electronic-quantum-matter
521, 436 (2015). imaging experiments, Nature 570, 484 (2019).
[6] M. I. Jordan and T. M. Mitchell, Machine learning: Trends, [26] W. Lian, S.-T. Wang, S. Lu, Y. Huang, F. Wang, X. Yuan,
perspectives, and prospects, Science 349, 255 (2015). W. Zhang, X. Ouyang, X. Wang, X. Huang, L. He, X. Chang,
[7] D. Silver, A. Huang, C. J. Maddison, A. Guez, L. Sifre, G. van D.-L. Deng, and L. Duan, Machine Learning Topological
den Driessche, J. Schrittwieser, I. Antonoglou, V. Panneershel- Phases with a Solid-State Quantum Simulator, Phys. Rev. Lett.
vam, M. Lanctot, S. Dieleman, D. Grewe, J. Nham, N. Kalch- 122, 210503 (2019).
brenner, I. Sutskever, T. Lillicrap, M. Leach, K. Kavukcuoglu, [27] M. A. Nielsen and I. L. Chuang, Quantum Computation
6
and Quantum Information (Cambridge University Press, Cam- mun. 5, 4213 (2014).
bridge, 2010). [51] C. Kokail, C. Maier, R. van Bijnen, T. Brydges, M. K. Joshi,
[28] A. W. Harrow, A. Hassidim, and S. Lloyd, Quantum Algorithm P. Jurcevic, C. A. Muschik, P. Silvi, R. Blatt, C. F. Roos, and
for Linear Systems of Equations, Phys. Rev. Lett. 103, 150502 P. Zoller, Self-verifying variational quantum simulation of lat-
(2009). tice models, Nature 569, 355 (2019).
[29] S. Lloyd, M. Mohseni, and P. Rebentrost, Quantum principal [52] J.-G. Liu, Y.-H. Zhang, Y. Wan, and L. Wang, Variational
component analysis, Nat. Phys. 10, 631 (2014). quantum eigensolver with fewer qubits, Phys. Rev. Research 1,
[30] V. Dunjko, J. M. Taylor, and H. J. Briegel, Quantum-Enhanced 023025 (2019).
Machine Learning, Phys. Rev. Lett. 117, 130501 (2016). [53] D. Wang, O. Higgott, and S. Brierley, Accelerated Variational
[31] M. H. Amin, E. Andriyash, J. Rolfe, B. Kulchytskyy, and Quantum Eigensolver, Phys. Rev. Lett. 122, 140504 (2019).
R. Melko, Quantum Boltzmann Machine, Phys. Rev. X 8, [54] J.-G. Liu and L. Wang, Differentiable learning of quantum cir-
021050 (2018). cuit Born machines, Phys. Rev. A 98, 062324 (2018).
[32] X. Gao, Z.-Y. Zhang, and L.-M. Duan, A quantum machine [55] B. Coyle, D. Mills, V. Danos, and E. Kashefi, The Born
learning algorithm based on generative models, Sci. Adv. 4, supremacy: Quantum advantage and training of an Ising Born
eaat9004 (2018). machine, Npj Quantum Inf. 6, 1 (2020).
[33] S. Lloyd and C. Weedbrook, Quantum Generative Adversarial [56] E. Farhi, J. Goldstone, and S. Gutmann, A Quantum Approxi-
Learning, Phys. Rev. Lett. 121, 040502 (2018). mate Optimization Algorithm, arXiv:1411.4028.
[34] L. Hu, S.-H. Wu, W. Cai, Y. Ma, X. Mu, Y. Xu, H. Wang, [57] L. Zhou, S.-T. Wang, S. Choi, H. Pichler, and M. D. Lukin,
Y. Song, D.-L. Deng, C.-L. Zou, and L. Sun, Quantum genera- Quantum Approximate Optimization Algorithm: Performance,
tive adversarial learning in a superconducting quantum circuit, Mechanism, and Implementation on Near-Term Devices, Phys.
Sci. Adv. 5, eaav2761 (2019). Rev. X 10, 021067 (2020).
[35] M. Schuld and N. Killoran, Quantum Machine Learning in Fea- [58] N. Moll, P. Barkoutsos, L. S. Bishop, J. M. Chow, A. Cross,
ture Hilbert Spaces, Phys. Rev. Lett. 122, 040504 (2019). D. J. Egger, S. Filipp, A. Fuhrer, J. M. Gambetta, M. Ganzhorn,
[36] M. Schuld, A. Bocharov, K. M. Svore, and N. Wiebe, Circuit- A. Kandala, A. Mezzacapo, P. Müller, W. Riess, G. Salis,
centric quantum classifiers, Phys. Rev. A 101, 032308 (2020). J. Smolin, I. Tavernelli, and K. Temme, Quantum optimiza-
[37] E. Farhi and H. Neven, Classification with Quantum Neural tion using variational algorithms on near-term quantum devices,
Networks on Near Term Processors, arXiv:1802.06002. Quantum Sci. Technol. 3, 030503 (2018).
[38] M. Schuld, M. Fingerhuth, and F. Petruccione, Implementing [59] J. Preskill, Quantum Computing in the NISQ era and beyond,
a distance-based classifier with a quantum interference circuit, Quantum 2, 79 (2018).
EPL Europhys. Lett. 119, 60002 (2017). [60] E. Real, S. Moore, A. Selle, S. Saxena, Y. L. Suematsu, J. Tan,
[39] K. Mitarai, M. Negoro, M. Kitagawa, and K. Fujii, Quantum Q. Le, and A. Kurakin, Large-Scale Evolution of Image Classi-
circuit learning, Phys. Rev. A 98, 032309 (2018). fiers, arXiv:1703.01041.
[40] V. Havlı́ček, A. D. Córcoles, K. Temme, A. W. Harrow, A. Kan- [61] E. Real, A. Aggarwal, Y. Huang, and Q. V. Le, Regularized
dala, J. M. Chow, and J. M. Gambetta, Supervised learning with evolution for image classifier architecture search, in Proceed-
quantum-enhanced feature spaces, Nature 567, 209 (2019). ings of the Aaai Conference on Artificial Intelligence, Vol. 33
[41] D. Zhu, N. M. Linke, M. Benedetti, K. A. Landsman, N. H. (2019) pp. 4780–4789.
Nguyen, C. H. Alderete, A. Perdomo-Ortiz, N. Korda, A. Gar- [62] K. O. Stanley and R. Miikkulainen, Evolving neural networks
foot, C. Brecque, L. Egan, O. Perdomo, and C. Monroe, Train- through augmenting topologies, Evol. Comput. 10, 99 (2002).
ing of quantum circuits on a hybrid quantum computer, Sci. [63] K. O. Stanley, J. Clune, J. Lehman, and R. Miikkulainen, De-
Adv. 5, eaaw9918 (2019). signing neural networks through neuroevolution, Nat. Mach. In-
[42] I. Cong, S. Choi, and M. D. Lukin, Quantum convolutional neu- tell. 1, 24 (2019).
ral networks, Nat. Phys. 15, 1273 (2019). [64] S. Huang, X. Li, Z.-Q. Cheng, Z. Zhang, and A. Haupt-
[43] K. H. Wan, O. Dahlsten, H. Kristjánsson, R. Gardner, and M. S. mann, GNAS: A Greedy Neural Architecture Search Method
Kim, Quantum generalisation of feedforward neural networks, for Multi-Attribute Learning, in Proceedings of the 26th ACM
Npj Quantum Inf. 3, 1 (2017). International Conference on Multimedia, MM ’18 (Associa-
[44] E. Grant, M. Benedetti, S. Cao, A. Hallam, J. Lockhart, V. Sto- tion for Computing Machinery, New York, NY, USA, 2018) pp.
jevic, A. G. Green, and S. Severini, Hierarchical quantum clas- 2049–2057.
sifiers, Npj Quantum Inf. 4, 1 (2018). [65] B. Zoph and Q. V. Le, Neural Architecture Search with Rein-
[45] Y. Du, M.-H. Hsieh, T. Liu, and D. Tao, Implementable Quan- forcement Learning, arXiv:1611.01578.
tum Classifier for Nonlinear Data, arXiv:1809.06056. [66] B. Baker, O. Gupta, N. Naik, and R. Raskar, Designing
[46] A. Uvarov, A. Kardashin, and J. Biamonte, Machine Neural Network Architectures using Reinforcement Learning,
Learning Phase Transitions with a Quantum Processor, arXiv:1611.02167.
arXiv:1906.10155. [67] H. Cai, T. Chen, W. Zhang, Y. Yu, and J. Wang, Efficient Archi-
[47] C. Blank, D. K. Park, J.-K. K. Rhee, and F. Petruccione, Quan- tecture Search by Network Transformation, arXiv:1707.04873.
tum classifier with tailored quantum kernel, arXiv:1909.02611. [68] B. Zoph, V. Vasudevan, J. Shlens, and Q. V. Le, Learning
[48] P. Rebentrost, M. Mohseni, and S. Lloyd, Quantum Support Transferable Architectures for Scalable Image Recognition,
Vector Machine for Big Data Classification, Phys. Rev. Lett. arXiv:1707.07012.
113, 130503 (2014). [69] H. Liu, K. Simonyan, and Y. Yang, DARTS: Differentiable Ar-
[49] F. Tacchino, C. Macchiavello, D. Gerace, and D. Bajoni, An chitecture Search, arXiv:1806.09055.
artificial neuron implemented on an actual quantum processor, [70] S. Xie, H. Zheng, C. Liu, and L. Lin, SNAS: Stochastic Neural
Npj Quantum Inf. 5, 1 (2019). Architecture Search, arXiv:1812.09926.
[50] A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, [71] A. Zela, T. Elsken, T. Saikia, Y. Marrakchi, T. Brox, and F. Hut-
P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien, A variational ter, Understanding and Robustifying Differentiable Architec-
eigenvalue solver on a photonic quantum processor, Nat. Com- ture Search, arXiv:1909.09656.
7
[72] H. Liang, S. Zhang, J. Sun, X. He, W. Huang, K. Zhuang, and D. Mukhopadhyay, Adversarial Attacks and Defences: A Sur-
Z. Li, DARTS+: Improved Differentiable Architecture Search vey, arXiv:1810.00069.
with Early Stopping, arXiv:1909.06035. [96] J. Bezanson, A. Edelman, S. Karpinski, and V. B. Shah, Julia:
[73] R. Li, U. Alvarez-Rodriguez, L. Lamata, and E. Solano, Ap- A Fresh Approach to Numerical Computing, SIAM Rev. 59, 65
proximate Quantum Adders with Genetic Algorithms: An IBM (2017).
Quantum Experience, Quantum Meas. Quantum Metrol. 4, 1 [97] X.-Z. Luo, J.-G. Liu, P. Zhang, and L. Wang, Yao.jl: Extensible,
(2017). Efficient Framework for Quantum Algorithm Design, Quantum
[74] L. Cincio, Y. Subaşı, A. T. Sornborger, and P. J. Coles, Learn- 4, 341 (2020).
ing the quantum algorithm for state overlap, New J. Phys. 20,
113022 (2018).
[75] T. Fösel, P. Tighineanu, T. Weiss, and F. Marquardt, Reinforce-
ment Learning with Neural Networks for Quantum Feedback,
Phys. Rev. X 8, 031084 (2018).
[76] A. G. Rattew, S. Hu, M. Pistoia, R. Chen, and S. Wood, A
Domain-agnostic, Noise-resistant, Hardware-efficient Evolu-
tionary Variational Quantum Eigensolver, arXiv:1910.09694.
[77] D. Chivilikhin, A. Samarin, V. Ulyantsev, I. Iorsh, A. R.
Oganov, and O. Kyriienko, MoG-VQE: Multiobjective genetic
variational quantum eigensolver, arXiv:2007.04424.
[78] L. Cincio, K. Rudinger, M. Sarovar, and P. J. Coles, Machine
learning of noise-resilient quantum circuits, arXiv:2007.01210.
[79] M. Ostaszewski, E. Grant, and M. Benedetti, Quantum circuit
structure learning, arXiv:1905.09692.
[80] L. Li, M. Fan, M. Coram, P. Riley, and S. Leichenauer, Quan-
tum optimization with a novel Gibbs objective function and
ansatz architecture search, Phys. Rev. Research 2, 023074
(2020).
[81] S.-X. Zhang, C.-Y. Hsieh, S. Zhang, and H. Yao, Differentiable
Quantum Architecture Search, arXiv:2010.08561.
[82] M. Pirhooshyaran and T. Terlaky, Quantum Circuit Design
Search, arXiv:2012.04046.
[83] Y. LeCun, C. Cortes, and C. Burges, MNIST handwritten digit
database (1998).
[84] W. H. Wolberg, N. Street, and O. L. Mangasarian, UCI Ma-
chine Learning Repository: Breast Cancer Wisconsin (Diag-
nostic) Data Set (1992).
[85] See Supplemental Material at [URL will be inserted by pub-
lisher] for details on the graph-encoding method and the MQNE
algorithm, and more numerical results to demonstrate the per-
formance of the proposed scheme.
[86] N. Deo, Graph Theory with Applications to Engineering and
Computer Science, first edition, first ed. (Dover Publications,
Mineola, New York, 2016).
[87] S. Lu, L.-M. Duan, and D.-L. Deng, Quantum adversarial ma-
chine learning, Phys. Rev. Research 2, 033212 (2020).
[88] I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning
(MIT Press, 2016).
[89] P. Smacchia, L. Amico, P. Facchi, R. Fazio, G. Florio, S. Pas-
cazio, and V. Vedral, Statistical mechanics of the cluster Ising
model, Phys. Rev. A 84, 022304 (2011).
[90] J. R. McClean, S. Boixo, V. N. Smelyanskiy, R. Babbush, and
H. Neven, Barren plateaus in quantum neural network training
landscapes, Nat. Commun. 9, 4812 (2018).
[91] M. Cerezo, A. Sone, T. Volkoff, L. Cincio, and P. J. Coles, Cost-
Function-Dependent Barren Plateaus in Shallow Quantum Neu-
ral Networks, arXiv:2001.00550.
[92] E. Grant, L. Wossnig, M. Ostaszewski, and M. Benedetti,
An initialization strategy for addressing barren plateaus in
parametrized quantum circuits, Quantum 3, 214 (2019).
[93] B. J. Erickson, P. Korfiatis, Z. Akkus, and T. L. Kline, Machine
Learning for Medical Imaging, RadioGraphics 37, 505 (2017).
[94] N. Liu and P. Wittek, Vulnerability of quantum classification to
adversarial perturbations, Phys. Rev. A 101, 062331 (2020).
[95] A. Chakraborty, M. Alam, V. Dey, A. Chattopadhyay, and
8
Supplementary Material: Markovian Quantum qubits can be acted on by rotation gate R or identity gate
Neuroevolution for Machine Learning pertaining to 2k−2 possibilities. Through some combinatorial
calculations, we can obtain the total number of 1 controlled-
In this Supplementary Material, we specifically show how Rx blocks:
to narrow (enlarge) the gate-block library by imposing (can-
N1 (1) = 2k−2 × k−1 × 21 .
celling) some restrictions on building possible gate-blocks. 1
We also mention how to expand the Markovian process in the
Similarly, for quantum gate-blocks containing i controlled-Rx
MQNE algorithm to the high-order Markovian process. Be-
gate, where i ≤ bk/2c, each of the remaining k − 2i qubits
sides, we present more details on the graph-encoding method
can be acted on by gate R or the identity gate, we obtain
and the MQNE algorithm and more numerical results to
N1 (i) = 2k−2i × k−i × 2i .
demonstrate the performance of the proposed scheme. i
For k-qubit quantum gate-block library, we can sort all 2. For each controlled-Rx gate acting on two neighboring
quantum gate-blocks into the ones containing 0 controlled-Rx qubits i and i + 1, we assume that the i-th qubit is the
gate, 1 controlled-Rx gate, until bk/2c controlled-Rx gates. controlling qubit.
For quantum gate-blocks containing 0 controlled-Rx gate, 3. There are at most c (a cut-off constant number indepen-
each of k qubits can be acted on by single-qubit rotation gate dent of k) controlled-Rx gates in each quantum gate-
R or identity gate, corresponding to 2k quantum gate-blocks block.
of this type totally. Likewise, for quantum gate-blocks con-
With these further restrictions, there are N2 (i) = k−i
taining 1 controlled-Rx gate, each of the remaining k − 2 i
gate-blocks containing i controlled-Rx gates, and conse-
quently the total number of gate-blocks f2 (k) in the library
[1, 2, 5, 4, 0, 0; 0, 0, 3, 0, 0, 6, 0] [0, 0, 0, 0, 0, 0; 1, 0, 3, 4, 0, 6, 7] is given by
R c
X c
X
k−i
= O(k c ).
f2 (k) = N2 (i) = i
Rx i=0 i=0
$ F F X U D F \
W U D L Q L Q J O R V V
0.69