Skip to main content
Log in

Quantum-inspired identification of complex cellular automata

  • Regular Article
  • Published:
The European Physical Journal Plus Aims and scope Submit manuscript

Abstract

Elementary cellular automata (ECA) present iconic examples of complex systems. Though described only by one-dimensional strings of binary cells evolving according to nearest-neighbour update rules, certain ECA rules manifest complex dynamics capable of universal computation. Yet, the classification of precisely which rules exhibit complex behaviour remains somewhat an open debate. Here, we approach this question using tools from quantum stochastic modelling, where quantum statistical memory—the memory required to model a stochastic process using a class of quantum machines—can be used to quantify the structure of a stochastic process. By viewing ECA rules as transformations of stochastic patterns, we ask: Does an ECA generate structure as quantified by the quantum statistical memory, and can this be used to identify complex cellular automata? We illustrate how the growth of this measure over time correctly distinguishes simple ECA from complex counterparts. Moreover, it provides a spectrum on which we can rank the complexity of ECA, by the rate at which they generate structure.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Data Availability Statement

This manuscript has associated data in a data repository. [Authors’ comment: The datasets generated during and/or analysed during the current study are available from the corresponding author on reasonable request.]

References

  1. J.M. Deutch, I. Oppenheim, The Lennard-Jones lecture: the concept of Brownian motion in modern statistical mechanics. Faraday Discuss. Chem. Soc. 83, 1 (1987)

    Article  Google Scholar 

  2. L. Chew, C. Ting, Microscopic chaos and gaussian diffusion processes. Physica A 307, 275 (2002). https://doi.org/10.1016/S0378-4371(01)00613-6

    Article  ADS  MathSciNet  MATH  Google Scholar 

  3. J.P. Crutchfield, Between order and chaos. Nat. Phys. 8, 17 (2011)

    Article  Google Scholar 

  4. S. Wolfram, Universality and complexity in cellular automata. Physica D 10, 1 (1984)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  5. S. Wolfram, Cellular automata as models of complexity. Nature 311, 419 (1984)

    Article  ADS  Google Scholar 

  6. M. Cook, Universality in elementary cellular automata. Complex Syst. 15, 1 (2004)

    MathSciNet  MATH  Google Scholar 

  7. C.G. Langton, Studying artificial life with cellular automata. Physica D 22, 120 (1986)

    Article  ADS  MathSciNet  Google Scholar 

  8. W. Li, Power spectra of regular languages and cellular automata. Complex Syst. 1, 107 (1987)

    MathSciNet  MATH  Google Scholar 

  9. H.A. Gutowitz, J.D. Victor, B.W. Knight, Local structure theory for cellular automata. Physica D 28, 18 (1987)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  10. W. Li, N.H. Packard, The structure of the elementary cellular automata rule space. Complex Syst. 4, 281 (1990)

    MathSciNet  MATH  Google Scholar 

  11. H.A. Gutowitz, A hierarchical classification of cellular automata. Physica D 45, 136 (1990)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  12. W. Li, N.H. Packard, C.G. Langton, Transition phenomena in cellular automata rule space. Physica D 45, 77 (1990)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  13. C.G. Langton, Computation at the edge of chaos: phase transitions and emergent computation. Physica D 42, 12 (1990)

    Article  ADS  MathSciNet  Google Scholar 

  14. P.M. Binder, A phase diagram for elementary cellular automata. Complex Syst. 7, 241 (1993)

    Google Scholar 

  15. A. Wuensche, Classifying cellular automata automatically: finding gliders, filtering, and relating space-time patterns, attractor basins, and the Z parameter. Complexity 4, 47 (1999)

    Article  MathSciNet  Google Scholar 

  16. S. Ninagawa, Power spectral analysis of elementary cellular automata. Complex Syst. 17, 399 (2008)

    MathSciNet  MATH  Google Scholar 

  17. E. L. P. Ruivo, P. P. B. de Oliveira, A Spectral Portrait of the Elementary Cellular Automata Rule Space, in Irreducibility and Computational Equivalence: 10 Years After Wolfram’s A New Kind of Science, edited by H. Zenil (Springer, Heidelberg, 2013) pp. 211–235

  18. G.J. Martinez, A note on elementary cellular automata classification. J. Cell. Autom. 8, 233 (2013)

    MathSciNet  MATH  Google Scholar 

  19. J.P. Crutchfield, K. Young, Inferring statistical complexity. Phys. Rev. Lett. 63, 105 (1989)

    Article  ADS  MathSciNet  Google Scholar 

  20. C.R. Shalizi, J.P. Crutchfield, Computational mechanics: Pattern and prediction, structure and simplicity. J. Stat. Phys. 104, 817 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  21. J.E. Hanson, J.P. Crutchfield, Computational mechanics of cellular automata: an example. Physica D 103, 169 (1997)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  22. W.M. Gonçalves, R.D. Pinto, J.C. Sartorelli, M.J. De Oliveira, Inferring statistical complexity in the dripping faucet experiment. Phys. A 257, 385 (1998)

    Article  Google Scholar 

  23. J..B. Park, J. Won Lee, J.S. Yang, H.H. Jo, H.T. Moon, Complexity analysis of the stock market. Phys. A 379, 179 (2007)

    Article  Google Scholar 

  24. R. Haslinger, K.L. Klinkner, C.R. Shalizi, The computational structure of spike trains. Neural Comput. 22, 121 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  25. H.N. Huynh, A. Pradana, L.Y. Chew, The complexity of sequences generated by the arc-fractal system. PLoS ONE 10, 1 (2015). https://doi.org/10.1371/journal.pone.0117365

    Article  Google Scholar 

  26. M. Gu, K. Wiesner, E. Rieper, V. Vedral, Quantum mechanics can reduce the complexity of classical models. Nat. Commun. 3, 762 (2012)

    Article  ADS  Google Scholar 

  27. J.R. Mahoney, C. Aghamohammadi, J.P. Crutchfield, Occam’s quantum strop: synchronizing and compressing classical cryptic processes via a quantum channel. Sci. Rep. 6, 20495 (2016)

    Article  ADS  Google Scholar 

  28. T.J. Elliott, M. Gu, Superior memory efficiency of quantum devices for the simulation of continuous-time stochastic processes. npj Quantum Inf. 4, 18 (2018)

    Article  ADS  Google Scholar 

  29. F.C. Binder, J. Thompson, M. Gu, A practical unitary simulator for non-Markovian complex processes. Phys. Rev. Lett. 120, 240502 (2018)

    Article  ADS  MathSciNet  Google Scholar 

  30. T.J. Elliott, A.J.P. Garner, M. Gu, Memory-efficient tracking of complex temporal and symbolic dynamics with quantum simulators. New J. Phys. 21, 013021 (2019)

    Article  ADS  Google Scholar 

  31. Q. Liu, T.J. Elliott, F.C. Binder, C. Di Franco, M. Gu, Optimal stochastic modeling with unitary quantum dynamics. Phys. Rev. A 99, 1 (2019)

    Article  Google Scholar 

  32. S.P. Loomis, J.P. Crutchfield, Strong and weak optimizations in classical and quantum models of stochastic processes. J. Stat. Phys. 176, 1317 (2019)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  33. W.Y. Suen, J. Thompson, A.J.P. Garner, V. Vedral, M. Gu, The classical-quantum divergence of complexity in modelling spin chains. Quantum 1, 25 (2017)

    Article  Google Scholar 

  34. C. Aghamohammadi, J.R. Mahoney, J.P. Crutchfield, The ambiguity of simplicity in quantum and classical simulation. Phys. Lett. A 381, 1223 (2017)

    Article  ADS  MATH  Google Scholar 

  35. A. J. P. Garner, Q. Liu, J. Thompson, V. Vedral, M. Gu, Provably unbounded memory advantage in stochastic simulation using quantum mechanics. New J. Phys. 19 ( 2017)

  36. C. Aghamohammadi, J.R. Mahoney, J.P. Crutchfield, Extreme quantum advantage when simulating classical systems with long-range interaction. Sci. Rep. 7, 6735 (2017)

    Article  ADS  Google Scholar 

  37. J. Thompson, A.J. Garner, J.R. Mahoney, J.P. Crutchfield, V. Vedral, M. Gu, Causal asymmetry in a quantum world. Phys. Rev. X 8, 31013 (2018)

    Google Scholar 

  38. T.J. Elliott, C. Yang, F.C. Binder, A.J.P. Garner, J. Thompson, M. Gu, Extreme dimensionality reduction with quantum modeling. Phys. Rev. Lett. 125, 260501 (2020)

    Article  ADS  MathSciNet  Google Scholar 

  39. T.J. Elliott, Quantum coarse graining for extreme dimension reduction in modeling stochastic temporal dynamics. PRX Quantum 2, 020342 (2021)

    Article  ADS  Google Scholar 

  40. T.J. Elliott, M. Gu, A.J.P. Garner, J. Thompson, Quantum adaptive agents with efficient long-term memories. Phys. Rev. X 12, 011007 (2022)

    Google Scholar 

  41. W.Y. Suen, T.J. Elliott, J. Thompson, A.J.P. Garner, J.R. Mahoney, V. Vedral, M. Gu, Surveying structural complexity in quantum many-body systems. J. Stat. Phys. 187, 1 (2022)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  42. M. Ho, M. Gu, T.J. Elliott, Robust inference of memory structure for efficient quantum modeling of stochastic processes. Phys. Rev. A 101, 32327 (2020)

    Article  ADS  Google Scholar 

  43. The term ‘quantum statistical memory’ is used in place of ‘quantum statistical complexity’ as such quantum machines may not necessarily be memory-minimal among all quantum models [31,33]

  44. R. Tan, D.R. Terno, J. Thompson, V. Vedral, M. Gu, Towards quantifying complexity with quantum mechanics. Eur. Phys. J. Plus 129, 191 (2014)

    Article  Google Scholar 

  45. R.A. Horn, C.R. Johnson, Matrix Analysis, 2nd edn. (Cambridge University Press, Cambridge, 2012)

    Book  Google Scholar 

  46. S. Wolfram, Random sequence generation by cellular automata. Adv. Appl. Math. 7, 123 (1986)

    Article  MathSciNet  MATH  Google Scholar 

  47. Random number generation. https://reference.wolfram.com/language/tutorial/RandomNumberGeneration.html. Last Accessed: 2022-08-17

  48. M. Schüle, R. Stoop, A full computation-relevant topological dynamics classification of elementary cellular automata. Chaos Interdiscip. J. Nonlinear Sci. 22, 043143 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  49. P. Kurka, Languages, equicontinuity and attractors in cellular automata. Ergodic Theory Dyn. Syst. 17, 417–433 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  50. P. Kurka, Topological Dynamics of Cellular Automata, in Codes, Systems, and Graphical Models (Springer, 2001) pp. 447–485

  51. R.H. Gilman, Classes of linear automata. Ergodic Theory Dyn. Syst. 7, 105 (1987)

    Article  MathSciNet  MATH  Google Scholar 

  52. B. Martin, A group interpretation of particles generated by one-dimensional cellular automaton, Wolfram’s rule 54. Int. J. Mod. Phys. C 11, 101 (2000)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  53. G.J. Martínez, A. Adamatzky, H.V. McIntosh, Complete characterization of structure of rule 54. Complex Syst. 23, 259 (2014)

    Article  MathSciNet  MATH  Google Scholar 

  54. P. Grassberger, Chaos and diffusion in deterministic cellular automata, Physica D: Nonlinear Phenomena , 52 (1984)

  55. K. Eloranta, E. Nummelin, The kink of cellular automaton rule 18 performs a random walk. J. Stat. Phys. 69, 1131 (1992)

    Article  ADS  MathSciNet  MATH  Google Scholar 

  56. Note that this is many, many orders of magnitude smaller than the time for which a typical finite-width ECA is guaranteed to cycle through already-visited states (\({\cal{O}}(2^{W})\)) [57]

  57. P. Grassberger, Long-range effects in an elementary cellular automaton. J. Stat. Phys. 45, 27 (1986)

    Article  ADS  MathSciNet  Google Scholar 

  58. A. N. Kolmogorov, On tables of random numbers, Sankhyā: Indian J. Stat. Ser. A , 369 ( 1963)

  59. R. J. Solomonoff, A formal theory of inductive inference. Part I, Information and Control 7, 1 ( 1964)

  60. G.J. Chaitin, On the simplicity and speed of programs for computing infinite sets of natural numbers. J. ACM 16, 407 (1969)

    Article  MathSciNet  MATH  Google Scholar 

  61. S. Lloyd, H. Pagels, Complexity as thermodynamic depth. Ann. Phys. 188, 186 (1988)

    Article  ADS  MathSciNet  Google Scholar 

  62. J.P. Crutchfield, C.R. Shalizi, Thermodynamic depth of causal states: objective complexity via minimal representations. Phys. Rev. E 59, 275 (1999)

    Article  ADS  MathSciNet  Google Scholar 

  63. D. Uragami, Y.P. Gunji, Universal emergence of 1/f noise in asynchronously tuned elementary cellular automata. Complex Syst. 27, 399 (2018)

    Article  MathSciNet  MATH  Google Scholar 

  64. G.J. Martínez, A. Adamatzky, J.C. Seck-Tuoh-Mora, R. Alonso-Sanz, How to make dull cellular automata complex by adding memory: rule 126 case study. Complexity 15, 34 (2010)

    MathSciNet  Google Scholar 

Download references

Acknowledgements

This work was funded by the National Research Foundation, Singapore, and Agency for Science, Technology and Research (A*STAR) under its QEP2.0 programme (NRF2021-606 QEP2-02-P06), the Singapore Ministry of Education Tier grants RG146/20 and RG77/22, Grant FQXi-RFP-1809 from the Foundational Questions Institute and Fetzer Franklin Fund (a donor advised fund of the Silicon Valley Community Foundation), and the University of Manchester Dame Kathleen Ollerenshaw Fellowship. Ministry of Education - Singapore (Grant Number: RG190/17).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Matthew Ho.

Appendices

Appendix A: Sub-tree reconstruction algorithm

Here, inference of the classical statistical complexity \(C_\mu \) is achieved through the sub-tree reconstruction algorithm [19]. It works by explicitly building an \(\varepsilon \)-machine of a stochastic process, from which \(C_\mu \) may readily be deduced. The steps are detailed below.

1. Constructing a tree structure. The sub-tree construction begins by drawing a blank node to signify the start of the process with outputs \(y \in \mathcal {A}\). A moving window of size 2L is chosen to parse through the process. Starting from the blank node, 2L successive nodes are created with a directed link for every y in each moving window \(\{y_{0:2L}\}\). For any sequence starting from \(y_0\) within \(\{y_{0:2L}\}\) whose path can be traced with existing directed links and nodes, no new links and nodes are added. New nodes with directed links are added only when the \(\{y_{0:2L}\}\) does not have an existing path. This is illustrated in Fig. 8

For example, suppose \(y_{0:6} = 000000\), giving rise to six nodes that branch outwards in serial from the initial blank node. If \(y_{1:7} = 000001\), the first five nodes gain no new branches, while the sixth node gains a new branch connecting to a new node with a directed link. Each different element of \(|\mathcal {A}|^{2L}\) has its individual set of directed links and nodes, allowing a maximum of \(|\mathcal {A}|^{2L}\) branches that originate from the blank node.

Fig. 8
figure 8

The sub-tree reconstruction algorithm, here illustrated for \(L=3\)

2. Assigning probabilities. The probability for each branch from the first node to occur can be determined by the ratio of the number of occurrences the associated strings to the total number of strings. Correspondingly, this allows each link to be denoted with an output y with its respective transition probability p.

3. Sub-tree comparison. Next, starting from the initial node, the tree structure of L outputs is compared against all other nodes. Working through all reachable L nodes from the initial node, any nodes with identical y|p and branch structure of L size are given the same label. Because of finite data and finite L, a \(\chi ^2\) test is used to account for statistical artefacts. The \(\chi ^2\) test will merge nodes that have similar-enough tree structures. This step essentially enforces the causal equivalence relation on the nodes.

4. Constructing the \(\varepsilon \)-machine. It is now possible to analyse each individually labelled node with their single output and transition probability to the next node. An edge-emitting hidden Markov model of the process can then be drawn up. This edge-emitting hidden Markov model represents the (inferred) \(\varepsilon \)-machine of the process.

5. Computing the statistical complexity. The hidden Markov model associated with the \(\varepsilon \)-machine has a transition matrix \(T_{kj}^y\) giving the probability of the next output being y given we are in causal state \(S_j\), and \(S_k\) being the causal state of the updated past. The steady state of this (i.e. the eigenvector \(\pi \) satisfying \(\sum _yT^y\pi =\pi \)) gives the steady-state probabilities of the causal states. Taking \(P(S_j)=\pi _j\), we then have the Shannon entropy of this distribution gives the statistical complexity:

$$\begin{aligned} C_\mu := H[ P(S_j) ] = -\sum _j P(S_j) \log _2 P(S_j). \end{aligned}$$
(A1)

For parity with the quantum inference protocol, we used \(L=6\) when inferring the \(C_\mu ^{(t)}\) of the ECA states, and set the tolerance of the \(\chi ^2\) test to 0.05.

Appendix B: Convergence with L

We here provide an expanded form of Figs. 5 in 9 regarding the convergence of our measures of complexity with increasing probability window lengths L, now including \(L=3:8\), and also showing analogous plots for \(C_\mu \) and E alongside \(C_q\). We note that the excess entropy E is estimated for finite length windows using \(E(L)=LH(X_{0:L-1})-(L-1)H(X_{0:L})\).

Fig. 9
figure 9

Growth of L-length (\(L=3:8)\) estimates of \(C_\mu \), \(C_q\), and E with time, up to a maximum of \(t_{\text {max}} = 10^5\) time steps. Different L correspond to different widths \(W=10^3*2^L\)

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Ho, M., Pradana, A., Elliott, T.J. et al. Quantum-inspired identification of complex cellular automata. Eur. Phys. J. Plus 138, 540 (2023). https://doi.org/10.1140/epjp/s13360-023-04160-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1140/epjp/s13360-023-04160-5

Navigation