Next Article in Journal
Teachers’ Use of Technology Affordances to Contextualize and Dynamically Enrich and Extend Mathematical Problem-Solving Strategies
Next Article in Special Issue
Boolean Networks Models in Science and Engineering
Previous Article in Journal
Self-Perceived Health, Life Satisfaction and Related Factors among Healthcare Professionals and the General Population: Analysis of an Online Survey, with Propensity Score Adjustment
Previous Article in Special Issue
Lac Operon Boolean Models: Dynamical Robustness and Alternative Improvements
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Random Networks with Quantum Boolean Functions

by
Mario Franco
1,2,
Octavio Zapata
1,
David A. Rosenblueth
1,3 and
Carlos Gershenson
1,3,4,*
1
Centro de Ciencias de la Complejidad, Universidad Nacional Autónoma de México, Ciudad de Mexico 04510, Mexico
2
Posgrado en Ciencia e Ingeniería de la Computación, Universidad Nacional Autónoma de México, Ciudad de Mexico 04510, Mexico
3
Instituto de Investigaciones en Matemáticas Aplicadas y en Sistemas, Universidad Nacional Autónoma de México, Ciudad de Mexico 04510, Mexico
4
Lakeside Labs GmbH, Lakeside Park B04, 9020 Klagenfurt am Wörthersee, Austria
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(8), 792; https://doi.org/10.3390/math9080792
Submission received: 1 February 2021 / Revised: 1 March 2021 / Accepted: 3 March 2021 / Published: 7 April 2021
(This article belongs to the Special Issue Boolean Networks Models in Science and Engineering)

Abstract

:

Simple Summary

Using the paradigm of quantum computation, we propose a novel model similar to random Boolean networks. We study the properties and dynamics of our model and find that these differ non-trivially from those of traditional random Boolean networks.

Abstract

We propose quantum Boolean networks, which can be classified as deterministic reversible asynchronous Boolean networks. This model is based on the previously developed concept of quantum Boolean functions. A quantum Boolean network is a Boolean network where the functions associated with the nodes are quantum Boolean functions. We study some properties of this novel model and, using a quantum simulator, we study how the dynamics change in function of connectivity of the network and the set of operators we allow. For some configurations, this model resembles the behavior of reversible Boolean networks, while for other configurations a more complex dynamic can emerge. For example, cycles larger than 2 N were observed. Additionally, using a scheme akin to one used previously with random Boolean networks, we computed the average entropy and complexity of the networks. As opposed to classic random Boolean networks, where “complex” dynamics are restricted mainly to a connectivity close to a phase transition, quantum Boolean networks can exhibit stable, complex, and unstable dynamics independently of their connectivity.

1. Introduction

Boolean networks were originally proposed in the late 1960s to model the behavior of regulatory networks by Kauffman [1]. Boolean networks have been used since to model the operation of discrete dynamical systems. This model is suitable for the study of complex systems as it offers a simple and flexible way to control the interaction of the elements of a system and observe the effects of structure change in the network dynamics. At the same time, quantum algorithms are still not well understood and it is as yet unclear for which kind of problem quantum computers will provide us with some sort of advantage. Quantum computation may prove beneficial to enrich the model of Boolean networks, considering that the dynamics described by quantum mechanics is fundamentally different from that of classical dynamics. Our objective is to explore the possibility of developing, within the quantum-computing framework, a model similar to that of classical Boolean networks.
In the 1980s, when the idea of using one of the smallest parts of nature to compute was proposed by Benioff [2], the field of quantum computing was born. One of the principles of quantum theory is that the evolution in time of a system which is isolated from its environment is given by a first-order differential equation called the Schrödinger equation. By solving this equation, one obtains a time-evolution operator which is necessarily unitary (see e.g., [3], Section 6.4.1). By definition, unitary operators are reversible. This means that it is not possible to have two different states evolve into the exact same state—as with dissipative systems such as classic Boolean networks—since it would no longer be possible to determine the initial state from the final state. In other words, information cannot be destroyed.
Nonetheless, quantum computing was not the cradle of reversible computing. Reversible computing formally appeared in 1961 with Landauer’s work [4]. In his research, Landauer linked the irreversibility of conventional computational operations and the thermodynamic behavior of the computational device. He stated that whenever a bit is overwritten with a new value, the previous information is not physically destroyed. Even if this information were lost for all practical purposes, it still exists as heat that was pushed out of the computational device. Landauer’s reasoning can be acknowledged if one considers that some of the most fundamental laws of physics are reversible.
Reversible computing has received limited attention, since it is quite complicated to implement and in many cases it is possible to get along without it. However, it has been slowly gaining followers [5], mainly due to the recently grim predictions casted upon conventional computing: in the near future, making a transistor smaller will no longer yield any practical improvement [6]. In addition, it is impossible to reduce the size of a transistor forever. Moreover, since reversibility is ubiquitous at the quantum level, reversible models may be useful to model some discrete physical systems.
When we take into consideration all the aforementioned, the idea of a quantum flavor of the Boolean network model naturally sprouts.
This paper is structured as follows: Section 2 serves to recall some useful concepts related to Boolean networks and provides a brief introduction to quantum computing. Section 2.4 provides a definition of a quantum Boolean function and a method for generating random quantum Boolean functions. In Section 3.1, we define the model of quantum Boolean networks and state a few basic properties. In Section 3, we generate quantum Boolean networks at random and study the average cycle length, the entropy and the complexity of the networks. Finally, Section 4 concludes the paper.

2. Preliminaries

The columns of a square, n × n matrix A are denoted by a j for j = 1 , 2 , n . The n × n matrix A T is called the transpose of A and is defined as follows:
A T = a 1 T a n T
If the entries of A are complex numbers, then A denotes the conjugate transpose A ¯ T . We say that A is invertible if there is a matrix A 1 such that A 1 A = I , where I is the identity matrix. A complex square matrix U is called unitary if U U = I . If U is a n × n unitary matrix, then its columns u 1 , , u n are pairwise orthogonal vectors of norm 1: for all i , j = 1 , , n , we have u i u j = 0 if i j and u j = u j u j = u j u j = 1 if i = j .
Let us consider a system with two degrees of freedom. This corresponds to choosing the standard basis vectors
e 1 = 1 0 and e 2 = 0 1
for some two-dimensional Euclidean space. A linear combination p = x e 1 + y e 2 with x , y R satisfying x , y 0 (non-negativity) and x + y = 1 (affiness) is called convex. The components x and y of the convex combination
p = x 1 0 + y 0 1 = x y
represent the probabilities of observing the system at states e 1 and e 2 , respectively. Hence, any convex combination of the basis elements is a discrete probability distribution on the set of states of the system.

2.1. Quantum Computation

Here we use standard, linear algebra notation. This is, however, not the usual practice in quantum theory literature. For a complete introduction to the subject, we refer the reader to [7].
A quantum system with two degrees of freedom is called a qubit. A state of a qubit is a unit vector ψ of the complex vector space C 2 . In this context, the components of ψ are called amplitudes and represent the square-roots of the probabilities of observing the system at each of the states of the standard basis of C 2 . If α is a complex number of norm 1, the unit vectors α ψ and ψ determine the same state up to a phase factor.
Although single qubits are useful for illustrating some of the elemental quantum phenomena, in practice, they are of little interest. We can combine multiple qubits to create a multi-qubit system. This is done via the tensor product (⊗) of the basis vectors corresponding to the individual vector spaces. For example, the state of a two qubit system will be given by:
ψ = α e 1 e 1 + β e 1 e 2 + δ e 2 e 1 + γ e 2 e 2
with | α | 2 + | β | 2 + | δ | 2 + | γ | 2 = 1 . The reader may notice that this combination automatically gives us a basis for the state space of the new system, i.e., the vectors e 1 e 1 , e 1 e 2 , e 2 e 1 , and e 2 e 2 form an orthonormal basis of C 4 . In general, any linear combination of basis states where the sum of the modulus square of the coefficients is 1 is called a superposition.
Another important concept in quantum computation is entanglement. We say that two systems are entangled if they are not separable or, in other words, we say that a system is entangled if it cannot be decomposed as a product of its subsystems. For example, it is not complicated to show that for all α , β , γ , δ C :
1 2 e 1 e 1 + 1 2 e 2 e 2 ( α e 1 + β e 2 ) ( δ e 1 + γ e 2 )
The evolution in discrete time of a quantum system that do not interact with its environment is implemented by multiplying a unitary matrix with the state vector. Given a unitary matrix U and a complex vector ψ of norm ψ = 1 , we have U ψ 2 = ( U ψ ) U ψ = ψ ( U U ) ψ = ψ ψ = 1 . Therefore, U ψ = 1 so U preserves the norm of unit vectors. Hence, U maps quantum states to quantum states. Unitary evolution is reversible because the inverse of a unitary matrix U always exists and it is equal to its conjugate transpose, i.e., U 1 = U . The matrix
A = 1 2 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0
has non-negative entries and the sum of each of its rows is equal to 1, i.e., A e = e where e is the all-ones vector. Non-negative matrices satisfying this condition are called stochastic. Since A is symmetric, i.e., A T = A , we have ( A e ) T = e T A = e T . That is, all the columns of A also sum to 1. Thus, A is doubly stochastic. Hence, A maps discrete distributions to discrete distributions. However, A is not unitary because it has columns that are neither orthogonal nor unit vectors: a 1 = a 3 , a 2 = a 4 , and a j = 1 4 + 1 4 = 1 2 for j = 1 , , 4 .
Therefore, the probabilistic dynamics given by a doubly stochastic matrix is in general not unitary.

2.2. Random Boolean Networks

A random Boolean network (RBN) is a tuple ( Σ , F ) , where Σ = { σ 1 , , σ n } is a set of Boolean variables taking values in { 0 , 1 } , and F is a set of n Boolean functions f i : { 0 , 1 } k i { 0 , 1 } with k i n for i = 1 , , n ; each f i is chosen uniformly at random from all k n 2 2 k possible Boolean functions of arity at most n. This model can be represented as a directed graph G = ( V , E ) , see Figure 1, where V = { 1 , , n } and there is a directed edge ( j , i ) E if and only if f i is a function of the Boolean variable σ j associated with the node j. RBNs have been extensively studied in the last decades and multiple generalizations have been proposed [8,9,10,11,12].
We can simulate a deterministic dynamical process using an RBN as follows. At the start, each σ i is assigned a value at random and at each t = 0 , 1 , its value is updated according to the evaluation of f i which depends on some subset of Σ . Concretely, suppose x { 0 , 1 } n is an n-dimensional vector containing random values drawn uniformly from the set { 0 , 1 } . Each component of x is the initial state of a Boolean variable in the network:
x i = σ i { 0 }
for i = 1 , , n . For each timestep t, the transition of the ith variable σ i is defined by the following updating scheme:
σ i { t } σ i { t + 1 } = f i ( σ i 1 { t } , , σ i k i { t } )
where { i 1 , , i k i } is the subset of nodes of V such that ( i r , i ) E for all r = 1 , , k i .
Another important aspect of Boolean networks is its update scheme. Many Boolean networks have a synchronous update scheme, i.e., all nodes are updated at the same time but, in general, we can also have Boolean networks that update only a fraction of its nodes at each timestep, asynchronous. This update can be made in a particular order each time, deterministic, or randomly, non-deterministic. Let us notice that synchronous networks are a special case of asynchronous networks (when the subset of nodes updated each timestep is Σ ) and deterministic networks are a special case of non-deterministic networks (when the update scheme always occurs in the same order).

2.3. Reversible Networks

Reversible Boolean networks (RevBN) [13,14] are of particular interest for the present work, as will become clear next. A reversible Boolean network is a tuple ( Ω , Σ , F ) , where Ω = { ω 1 , , ω n } and Σ = { σ 1 , , σ n } are sets of Boolean variables, σ i , ω i { 0 , 1 } , i = 1 , , n , and F is a set of n Boolean functions f i : { 0 , 1 } k i { 0 , 1 } with k i n , chosen uniformly from all the possible Boolean functions of at most arity n. Again, we define a dynamical process on these random networks. At the start, each variable σ i , ω i is assigned a value at random, and a two-dimensional state vector s i = σ i e 1 + ω i e 2 is prepared for all i:
s i = σ i ω i
The state of the ith node of the network is the first component of the state vector s i . Therefore, the state of the whole network is not a 1-dimensional vector but a 2 × n matrix with columns s 1 , , s n . Each timestep t = 0 , 1 , the network variables are updated, in a synchronous way, changing each state vector, as follows:
s i { t } = σ i { t } ω i { t } s i { t + 1 } = ω i { t } f i ( σ i 1 { t } , , σ i k i { t } ) σ i { t }
where ⊕ represents addition modulo 2. This description extends the state space of the network, and doing so, it avoids the degenerated cycles defined in the original papers about reversible Boolean networks.
In this kind of networks all states are part of an attractor, i.e., there are no basins of attraction. Moreover, since every state of the network is part of an attractor, it can be shown that this implies that the network is reversible since every state of an attractor is mapped to exactly one state at the next timestep.
Another way to visualize this reversibility is that, independently of the computation the network has performed, it is possible to recover the initial state. At any time step t + 1 , we can easily recover σ i { t } from Ω , since ω i { t + 1 } = σ i { t } . Recovering ω i { t } is also straightforward since ω i { t } = σ i { t + 1 } f i ( σ i 1 { t } , , σ i k i { t } ) . Notice that we can compute f i ( σ i 1 { t } , , σ i k i { t } ) without any trouble because, from the previous step, we already know all σ i { t } . Furthermore, considering the previous development and the fact that the network has a finite amount of possible states it follows that the state space of the network is a finite collection of disjoint cycles.
When reversible Boolean networks were originally proposed, the authors mentioned that in this type of network there are different types of attractors. We believe this is misleading, they disregard the effect of what we like to call the “memory of the network”. As a consequence, we observe a somewhat richer dynamic in attractors, for example, the network starts to traverse the cycle backwards.

2.4. Quantum Boolean Functions

In order to define an analogous model of Boolean networks within the quantum realm, we use the notion of quantum Boolean function from [15]. A quantum Boolean function on k qubits is a 2 k × 2 k unitary matrix U such that U U = I . It follows from this definition, that any quantum Boolean function U satisfies U = U . Additionally, if U and V are quantum Boolean functions on the same number of qubits, then U V is a quantum Boolean function if and only if U V = V U . A standard way to encode a k-ary Boolean function f : { 0 , 1 } k { 0 , 1 } as a quantum Boolean function, is to define the following diagonal matrix:
U f = ( 1 ) f ( 0 , 0 , , 0 ) ( 1 ) f ( 0 , 0 , , 1 ) ( 1 ) f ( 1 , 1 , , 1 )
Since U f is a diagonal matrix with ± 1 in all diagonal entries, then U f U f is a diagonal matrix with ( ± 1 ) 2 = 1 in all diagonal entries, i.e., U f U f = I . The two 2 × 2 unitary matrices
X = 0 1 1 0 a n d H = 1 2 1 1 1 1
are called the Pauli X and Hadamard operators. These two operators are quantum Boolean functions on one qubit: X X = I and H H = I . Their action on the standard basis vectors of C 2 can be written as follows:
e 1 X e 1 = e 2 e 1 H e 1 = M M 1 / 2 ( e 1 + e 2 ) e 2 X e 2 = e 1 e 2 H e 2 = M M 1 / 2 ( e 1 e 2 )
Although the definition of quantum Boolean function is rather general, it may not be useful for us without some simple restrictions. The first thing we may notice is that this formulation of quantum Boolean functions can map a state to any other state. Such mapping can be troublesome in the context of Boolean networks since we want functions to change only one node, not the whole network at the same time. This problem can be easily solved if we restrict ourselves to the subset of quantum Boolean functions that can only affect one qubit at a time. As an example, let us consider the following mapping:
e 1 e 1 e 1 e 1 e 1 e 2 e 1 e 2 e 1 e 1 e 2 e 2 e 1 e 1 e 2 e 1 e 1 e 1 e 1 e 2 e 2 e 1 e 2 e 1 e 2 e 1 e 1 e 2 e 1 e 1 e 2 e 2 e 1 e 2 e 2 e 2 e 2 e 1 e 2 e 2 e 1 e 2 e 2 e 2 e 2 e 2 e 2 e 1
This mapping is implemented by the following block diagonal 8 × 8 matrix:
B = X X I X
This kind of mapping only affects the last qubit (in a reversible way) by preserving or inverting the qubit conditioned on the other input qubits. It is not difficult to see that B is quantum Boolean. This way of declaring quantum Boolean functions resembles the disjunctive normal form of Boolean functions in which the function is defined via some conjunction of terms with the difference that, in this case, we apply the Pauli X operator to the qubit if the input is a term of the function.
We can replace the X operator for any quantum Boolean operator U that acts on a single qubit and the complete operator will still be a quantum Booelan operator. For example, we can replace the X operator with the Hadamard operator. This operator puts the qubit into a balanced superposition of e 1 and e 2 . Considering the previous mapping, if we replace some of the implicit X operators for the H operator, we obtain a quantum Boolean function that can create superpositions of states:
e 1 e 1 e 1 e 1 e 1 e 2 e 1 e 2 e 1 M M 1 / 2 ( e 1 e 2 e 1 + e 1 e 2 e 2 ) e 1 e 1 e 2 e 1 e 1 e 1 e 1 e 2 e 2 M M 1 / 2 ( e 1 e 2 e 1 e 1 e 2 e 2 ) e 2 e 1 e 1 e 2 e 1 e 1 e 2 e 2 e 1 M M 1 / 2 ( e 2 e 2 e 1 + e 2 e 2 e 2 ) e 2 e 1 e 2 e 2 e 1 e 2 e 2 e 2 e 2 M M 1 / 2 ( e 2 e 2 e 1 e 2 e 2 e 2 )
Even more, we can set aside the target qubit to write a representation of this kind of mappings that is similar to the truth table representation of Boolean functions. For example, we can represent the previous mapping with the following table:
In general, let U 1 , , U 2 n 1 be quantum Boolean function on a single qubit and let
B = U 1 U 2 U 2 n 1
Since B is diagonal and each U i is quantum Boolean, then B is a quantum Boolean function on n qubits. The previous development only allows the creation of quantum Boolean operators that modify the last qubit using the input in a particular order. We can easily compute any Boolean operator that targets any qubit using any input order by simply rearranging the qubits order via a change of basis. Such particular change of basis is performed with a permutation matrix. Recall that a permutation matrix is a square matrix with a unique 1 entry per row and per column, and 0 everywhere else. Now, let U be a quantum Boolean function and let B = P T U P for some P permutation matrix. By definition, permutation matrices are orthogonal, i.e., P T P = I . Hence, B B = ( P T U P ) ( P T U P ) = P T U ( P P T ) U P = P T ( U U ) P = I . Therefore, B is a quantum Boolean function.

3. Random Quantum Boolean Networks

3.1. Quantum Boolean Networks

A quantum Boolean network (QBN) is a tuple ( Σ , F , Π ) , where Σ is a set of n qubits, F = { U 1 , , U n } is a set of quantum Boolean operators and Π = { π 1 , , π n } is a permutation of the set of indices { 1 , , n } that serves as the update order of the network. Each U i is a quantum Boolean function on 1 k i n qubits that only modifies the state of the ith qubit. The last element is required to specify the behavior of the network without any ambiguity since, in general, the Boolean operators do not commute. Specifically, the transition matrix B of the network is the product:
B = U π 1 U π n
Since the product of quantum Boolean functions is quantum Boolean, B is unitary. Thus, quantum Boolean networks are reversible and have an update scheme that is asynchronous and deterministic. Just to clarify, a complete timestep of the network is equivalent to the product of all the operators in the specified order:
ψ { t + 1 } = U π 1 U π n ψ { t } = B ψ { t }
The state of the network is a linear combination of all the vectors spanned by the tensor product of the qubits. In other words, it may be any vector of norm one in 2 n . In QBNs every state is part of an attractor because the evolution is reversible, i.e., every state comes from a particular state and goes to another one; otherwise the computation will not be reversible. Another curious property of QBNs is that they can generate cycles of infinite length with a finite amount of nodes. Consider the following operator:
U = c o s ( θ ) s i n ( θ ) s i n ( θ ) c o s ( θ )
Again, it is a simple exercise to show that U is a quantum Boolean function of arity 1. Moreover, U is a rotation parameterized by θ . In theory, we can set θ equal to some irrational number which in turn will produce a rotation by some irrational angle and consequently, no matter how many times we apply U again, we will never return to the initial configuration.
One important distinction between QBNs with any other classical Boolean network is that every node is always connected to itself. This follows from the fact that, in quantum computing, we cannot erase information and the previous state of the node always affects the computation of next state of itself. Therefore, the minimum connectivity of the every node in the graph is one.
Owing to the fact that we are interested in studying the general behavior of this new kind of Boolean network, we adopt a similar scheme to the one of random Boolean networks, i.e., randomly generate Boolean networks along the space of possible networks and study how a change in certain parameters changes the average dynamic of the networks.
To generate random networks with n nodes, we require a set of n quantum Boolean operators and a permutation of the first n integers which will serve as an order. We generate the former by first computing a relationship graph G = ( V , E ) between the nodes in such a way that
P ( ( i , j ) E i , j V ) = K N 1
where K is the desired connectivity of the network and N is the number of nodes. Although the previous way of computing the graph does not always produces a graph with connectivity exactly equal to K, in practice, it produces graphs with average connectivity quite close to the target value. Afterwards, we create a set of N quantum Boolean operators with arity equal to the number of edges pointing to the target node. Each operator is computed by associating each input label with a single qubit quantum Boolean operator (see Table 1 for an example) and then use such a mapping to define a unitary complex matrix (similarly to the construction done in the last paragraph of Section 2.4). For the latter, we simply select a permutation of the set { 1 , , n } uniformly.
Although we previously restricted the set of all possible quantum Boolean functions to the subset of functions that only modifies the state of at most one qubit, this set is still not useful from a practical point of view (most of these functions are generic rotations without a direct computational meaning which may create cycles of infinite length). We further refine this set to the one of quantum Boolean functions that can be constructed with the procedure we stated before using only the Pauli operators ( I , X , Y , Z ) plus Hadamard (H). In practice, it is complicated to implement an arbitrary operator and the Pauli operators are among the easiest operators to implement. In addition, they can also be interpreted more easily, for example, the X operator is the generalization of the bit flip operation and the H operator can be seen as a split of the bit into its two possible values. These operators are implemented by the following two 2 × 2 matrices:
I = 1 0 0 1 X = 0 1 1 0 Y = 0 i i 0 Z = 1 0 0 1 H = 1 2 1 1 1 1
While this set may seem rather small, it is quite powerful, it is capable of phenomena like phase change, superposition, and entanglement can emerge. Given these five operators, we can naturally design four experimental sets: { I , X } , { I , X , Y , Z } , { I , X , H } , { I , X , Y , Z , H } . Intuitively, the first set can only flips bits conditioned on the input; the second, can flip and alter the phase of the system; the third and fourth, are variations of the previous configurations but this time we allow the creation of superposition (the third set can induce a real phase to the state but not a complex phase). Additionally, due to the fact that simulations of large quantum registers are computationally prohibitive, we restricted our simulation to small networks. For the simulation, we used the quantum simulator QuEST [16].

3.2. Cycle Lengths

In Figure 2, we show some examples of the dynamics present in QBNs. The figure shows the magnitude of amplitude of all states of the computation basis at timestep t. Although this way of illustrating the dynamics is completely blind to quantum phase we consider it quite illustrative. When we prohibit the creation of superpositions we observe a dynamic that is quite similar to the dynamic of RevBNs. On the other hand, when we allow the creation of such states, we observe a much more complex dynamic emerge.
When we compute the survival probability of cycles in the network (the probability that a cycle does not return to the initial state at the next timestep t + 1 given that its current size is l), see Figure 3, it becomes clear that we can now produce cycles larger than 2 N . Just by including operators that induce a phase, Y, and Z, to the state, it is possible to obtain larger cycles. Furthermore, an explosion in the length of the cycles can be observed when we introduce the possibility to create superposition of states, via the the H operator.
The first phenomenon, the possibility of larger cycles when we include operators that can induce a phase on the quantum state, emerges simply as a mathematical curiosity and is quite straightforward to explain. For example, take the operators X and Y, both behave similarly:
X e 1 = e 2 Y e 1 = i e 2
but when we compare both states we have that they are strictly different. Similarly, if we take the operator that describes the complete dynamic of the network, B, it may happen that, somewhere along the cycle, B induces a phase on the state and then, we return to the initial state, we have two states that are strictly different. Considering the operator sets we are using, it is possible to create cycles four times larger because this sets allow four possible phases: + 1 , 1 , + i , and i . Experimentally we do not observe cycles that are large, probably because they require a specific amount of phase flips and our building method may be biased away from those configurations.
The cycle length explosion is also easily explained. A quantum state is a linear combination of states, any linear combination of magnitude one, and Hadamard allow us to grasp a subset of such infinite set of linear combinations. Unfortunately, we were only able to study the effect of superposition for a really small case ( N = 3 ) since a mixture between the enormous increase in length and the propagation of errors make it impossible to compute cycle lengths with confidence.

3.3. Entropy

We also computed the Shannon entropy (S) for different operator sets and network sizes, see Figure 4. The entropy is computed as the average entropy of multiple QBNs realizations. The entropy of a particular QBN is calculated as the average entropy of its cycles and the entropy of a cycle is just the average Shannon entropy of the nodes, using the node measurement probability of being e 1 or e 2 .
It is relatively simple to calculate the entropy when the connectivity is equal to zero. Here, we first analyze the case when the set is { I , X } and all operators are selected with uniform probability. Let us denote the probability that the network is composed exactly of k Pauli X operators as P ( X = k ) then,
P ( X = k ) = N ! k ! ( N k ) ! p X k p I N k
With this operator set and connectivity value, we can only invert the state of a node and this change is reverted the next timestep. It is easy to calculate the entropy of the network given the number of X’s gates.
S ( n e t w o r k X = k ) = k N
Finally, to obtain the average entropy of the network, we just compute the weighted mean,
E ( S ) = k = 1 N P ( X = k ) S ( n e t w o r k X = k ) = k = 1 N ( N 1 ) ! ( k 1 ) ! ( N k ) ! p X k p I N k
A little test for the case when N = 3 and the operators are selected with uniform probability,
E ( S ) = k = 1 3 2 ! ( k 1 ) ! ( 3 k ) ! 1 2 3 = 4 1 2 3 = 1 2
In general, for the case when the connectivity is equal to zero, we have that the probability of a particular combination of operators is,
P ( U 1 = k 1 U m = k m ) = N ! k 1 ! k m ! i = 1 m p U i k i
Now, since the entropy is given by the average entropy of the nodes, we can compute the entropy individually according to the operator that is applied to the qubit,
S ( U 1 = k 1 U m = k m ) = 1 N i = 1 m S ( U i = k i )
Therefore, the average entropy is,
E ( S ) = k 1 = 1 m k m = m ( k m 1 + + k 1 ) m N ! k 1 ! k m ! i = 1 m p U i k i 1 N i = 1 m S ( U i = k i )
If we consider a network with three nodes constructed with the set { I , X , H } , the previous formula gives us an estimate for the entropy of 0.603, which fits exactly with the mean of the observations. Considering the complex behavior that emerges when we increase the connectivity value, it is rather difficult to say anything more from a theoretical perspective.

3.4. Complexity

In addition to cycle lengths and entropies, we also computed the complexity of the networks [17], see Figure 5. The complexity of a network is given by:
C ( S ) = 4 S ( 1 S )
with S the entropy of the network. The factor 4 is used to normalize the measure to the interval [ 0 , 1 ] . Intuitively, complexity aims to measure the balance between change and stability. It is minimal for S = 0 (no change, only one state possible) and also for S = 1 (constant change, all states equally possible). Complexity is maximal C = 1 when S = 0.5 , which coincides with phase transitions in classical random Boolean networks and the Ising model, as well as with class IV cellular automata [18].
We observed that QBNs have a higher complexity than RevBNs. This may be interpreted as QBNs being less extreme in their dynamics, in other words, they present a behavior that is more balanced in terms of change and regularity than RevBNs. In both cases, the complexity tends to decrease at higher connectivity values suggesting that the dynamic in both cases is moving towards a chaotic or an ordered regime. Additionally, bigger networks have less complexity at greater connectivities. We suspect this is because smaller networks have a smaller state space and there is not much of a difference between regular and irregular in a small space.
It is worth noticing that QBNs have a high complexity average almost independently of the connectivity. This contrasts with classical RBNs, where a high complexity is found only near the phase transition ( K = 2 ). In addition, the high standard deviations (see Figure A5) suggest that the precise dynamic behavior of a QBN depends more on the operators it uses and less on the connectivity. RevBNs would be an intermediate case, where complexity and standard deviations are higher than those of classical RBNs, but lower than those of QBNs (see Figure A6).

4. Conclusions

In the present work, we proposed a new Boolean network model using the paradigm of quantum computation: quantum Boolean networks, which exhibit a deterministic, asynchronous, and reversible dynamic. QBNs can create networks with an odd number of nodes in contrast with RevBNs which require an auxiliary set of nodes of the same size in order to allow reversible evolution; thus, RevBNs always have an even number of nodes. If we consider a non-degenerated version of the state space that a reversible Boolean network spans (a state space that also includes the memory nodes), for a restricted set of operators, the unitary dynamics of our model behaves similarly to the dynamics of reversible Boolean networks. We conjecture that QBNs are a generalization of RevBNs but a formal proof eluded us for the time being.
This model is likely to be better suited to model phenomena in which we cannot neglect quantum effects. Additionally, we suspect it may be possible to encode our lack of certainty about the current state of the network as a superposition, then let the network evolve and recover the most probable states at a certain time but further research about which operators better represent classical dynamics and inclusion of dissipation may be required, perhaps as measurements or a Hamiltonian which slowly drives the dynamics to low energy states. Independently of this, including any form of information dissipation may result in an appealing version of QBN, especially because it can bring closer this model and the dissipative variants of Boolean networks.
One interesting point about this model is that it also permits to control the “quantumness” of the network via restrictions to the set of single qubit quantum Boolean functions. However, this does not provide a fine-grained level of control.
The way we say that two states are equal could be debatable. Although, formally they are two different things, in practice it is quite complicated to distinguish between two states that only differ up to a global phase (a phase that can be factorized from every state of the basis). Therefore, it is possible to argue that we cannot produce larger cycles than 2 N by means of phase alone. Nonetheless, we consider this possibility mathematically interesting. In addition, when we have a superposition of states, we can induce a relative phase between states with the advantage that such phase can be distinguished and also used to create larger cycles.

Author Contributions

Conceptualization, M.F., O.Z., C.G., D.A.R.; methodology, M.F., O.Z., C.G., D.A.R.; software, M.F.; validation, M.F.; formal analysis, M.F., O.Z., C.G., D.A.R.; investigation, M.F.; writing—original draft preparation, M.F.; writing—review and editing, M.F., O.Z., C.G., D.A.R.; visualization, M.F.; supervision, C.G., O.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
RBNrandom Boolean network
RevBNreversible Boolean network
QBNquantum Boolean network

Appendix A

Figure A1. Survival probability for different connectivity values of QBNs with 3, 4, 5, and 6 nodes. The survival probability was computed from 20,000 realizations. For practical reasons (extremely large cycles and computational errors), configurations that can produce superpositions were omitted.
Figure A1. Survival probability for different connectivity values of QBNs with 3, 4, 5, and 6 nodes. The survival probability was computed from 20,000 realizations. For practical reasons (extremely large cycles and computational errors), configurations that can produce superpositions were omitted.
Mathematics 09 00792 g0a1

111
(a)(b)(c)
Figure A2. Survival probability for different connectivity values of RevBNs with 3, 4, 5, and 6 nodes. The survival probability was computed from 20,000 realizations.
Figure A2. Survival probability for different connectivity values of RevBNs with 3, 4, 5, and 6 nodes. The survival probability was computed from 20,000 realizations.
Mathematics 09 00792 g0a2

.5.5.5.5
(a)(b)(c)(d)
Figure A3. Entropy for QBNs with 3, 4, 5, and 6 nodes. Connectivity is normalized from the range ( 1 , N ) . The entropy was computed from 20,000 realizations. For practical reasons (extremely large cycles and computational errors), configurations that can produce superpositions were omitted.
Figure A3. Entropy for QBNs with 3, 4, 5, and 6 nodes. Connectivity is normalized from the range ( 1 , N ) . The entropy was computed from 20,000 realizations. For practical reasons (extremely large cycles and computational errors), configurations that can produce superpositions were omitted.
Mathematics 09 00792 g0a3

.5.5.5.5
(a)(b)(c)(d)
Figure A4. Entropy for RevBNs with 3, 4, 5, and 6 nodes. Connectivity is normalized from the range ( 1 , N ) . The entropy was computed from 20,000 realizations.
Figure A4. Entropy for RevBNs with 3, 4, 5, and 6 nodes. Connectivity is normalized from the range ( 1 , N ) . The entropy was computed from 20,000 realizations.
Mathematics 09 00792 g0a4

.47.47.47.47
(a)(b)(c)(d)
Figure A5. Complexity for QBNs with 3, 4, 5, and 6 nodes. Connectivity is normalized from the range ( 1 , N ) . The complexity was computed from 20,000 realizations.
Figure A5. Complexity for QBNs with 3, 4, 5, and 6 nodes. Connectivity is normalized from the range ( 1 , N ) . The complexity was computed from 20,000 realizations.
Mathematics 09 00792 g0a5

.47.47.47.47
(a)(b)(c)(d)
Figure A6. Complexity for RevBNs with 3, 4, 5, and 6 nodes. Connectivity is normalized from the range ( 1 , N ) . The complexity was computed from 20,000 realizations.
Figure A6. Complexity for RevBNs with 3, 4, 5, and 6 nodes. Connectivity is normalized from the range ( 1 , N ) . The complexity was computed from 20,000 realizations.
Mathematics 09 00792 g0a6

.5.5.5.5
(a)(b)(c)(d)

References

  1. Kauffman, S.A. Metabolic stability and epigenesis in randomly constructed genetic nets. J. Theor. Biol. 1969, 22, 437–467. [Google Scholar] [CrossRef]
  2. Benioff, P. The computer as a physical system: A microscopic quantum mechanical Hamiltonian model of computers as represented by Turing machines. J. Stat. Phys. 1980, 22, 563–591. [Google Scholar] [CrossRef]
  3. Isham, C.J. Lectures on Quantum Theory: Mathematical and Structural Foundations; World Scientific: Singapore, 1995. [Google Scholar]
  4. Landauer, R. Irreversibility and heat generation in the computing process. IBM J. Res. Dev. 1961, 5, 183–191. [Google Scholar] [CrossRef]
  5. Morita, K. Theory of Reversible Computing; Springer: Berlin, Germany, 2017. [Google Scholar]
  6. Frank, M.P. Approaching the physical limits of computing. In Proceedings of the 35th International Symposium on Multiple-Valued Logic (ISMVL’05), Calgary, BC, Canada, 19–21 May 2005; pp. 168–185. [Google Scholar]
  7. Nielsen, M.A.; Chuang, I.L. Quantum Computation and Quantum Information: 10th Anniversary Edition; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
  8. Gershenson, C. Introduction to random Boolean networks. In Proceedings of the Ninth International Conference on the Simulation and Synthesis of Living Systems; MIT Press: Cambridge, MA, USA, 2004; pp. 160–173. [Google Scholar]
  9. Gershenson, C. Classification of random Boolean networks. In Proceedings of the Eighth International Conference on Artificial Life; MIT Press: Cambridge, MA, USA, 2002; pp. 1–8. [Google Scholar]
  10. Gershenson, C.; Broekaert, J.; Aerts, D. Contextual random Boolean networks. In European Conference on Artificial Life; Springer: Berlin, Germany, 2003; pp. 615–624. [Google Scholar]
  11. Shmulevich, I.; Dougherty, E.R.; Kim, S.; Zhang, W. Probabilistic Boolean networks: A rule-based uncertainty model for gene regulatory networks. Bioinformatics 2002, 18, 261–274. [Google Scholar] [CrossRef] [PubMed]
  12. Zapata, O.; Gershenson, C. Random fuzzy networks. In Artificial Life Conference Proceedings 14; MIT Press: Cambridge, MA, USA, 2014; pp. 427–428. [Google Scholar]
  13. Coppersmith, S.; Kadanoff, L.P.; Zhang, Z. Reversible Boolean networks I: Distribution of cycle lengths. Phys. D Nonlinear Phenom. 2001, 149, 11–29. [Google Scholar] [CrossRef] [Green Version]
  14. Coppersmith, S.; Kadanoff, L.P.; Zhang, Z. Reversible Boolean networks: II. Phase transitions, oscillations, and local structures. Phys. D Nonlinear Phenom. 2001, 157, 54–74. [Google Scholar] [CrossRef] [Green Version]
  15. Montanaro, A.; Osborne, T.J. Quantum boolean functions. Chic. J. Theor. Comput. Sci. 2010, 1, 1–45. [Google Scholar]
  16. Jones, T.; Brown, A.; Bush, I.; Benjamin, S.C. QuEST and high performance simulation of quantum computers. Sci. Rep. 2019, 9, 1–11. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Fernández, N.; Maldonado, C.; Gershenson, C. Information measures of complexity, emergence, self-organization, homeostasis, and autopoiesis. In Guided Self-Organization: Inception; Springer: Berlin, Germany, 2014; pp. 19–51. [Google Scholar]
  18. Gershenson, C.; Fernández, N. Complexity and information: Measuring emergence, self-organization, and homeostasis at multiple scales. Complexity 2012, 18, 29–44. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Visualization of a Boolean network as a graph.
Figure 1. Visualization of a Boolean network as a graph.
Mathematics 09 00792 g001
Figure 2. Examples of different dynamics exhibited by a quantum Boolean network (QBN) with 3 nodes. In panel (a), we observe a dynamic that keeps the amplitude concentrated in one particular state, such dynamic resemblances the behavior of a reversible Boolean network. Panels (bd) illustrate some of the dynamics that can be observed in QBNs.
Figure 2. Examples of different dynamics exhibited by a quantum Boolean network (QBN) with 3 nodes. In panel (a), we observe a dynamic that keeps the amplitude concentrated in one particular state, such dynamic resemblances the behavior of a reversible Boolean network. Panels (bd) illustrate some of the dynamics that can be observed in QBNs.
Mathematics 09 00792 g002
Figure 3. Survival probability for different connectivity values of a network with 3 nodes. The survival probability is computed from 20,000 realizations. The survival probability for reversible Boolean networks (RevBNs) and QBNs for different network sizes can be consulted in Figure A1 and Figure A2.
Figure 3. Survival probability for different connectivity values of a network with 3 nodes. The survival probability is computed from 20,000 realizations. The survival probability for reversible Boolean networks (RevBNs) and QBNs for different network sizes can be consulted in Figure A1 and Figure A2.
Mathematics 09 00792 g003
Figure 4. Entropy for different QBN configurations is shown in panel (a). In order to allow a comparison between networks of different sizes, we normalized the connectivity value. Panel (b) shows the entropy for RevBNs of different sizes. A detailed version of the entropy for QBNs and RevBNs can be consulted in Figure A3 and Figure A4, respectively.
Figure 4. Entropy for different QBN configurations is shown in panel (a). In order to allow a comparison between networks of different sizes, we normalized the connectivity value. Panel (b) shows the entropy for RevBNs of different sizes. A detailed version of the entropy for QBNs and RevBNs can be consulted in Figure A3 and Figure A4, respectively.
Mathematics 09 00792 g004
Figure 5. Panel (a) shows the complexity for different QBN configurations. Connectivity was normalized to allow a direct comparison between networks of different sizes. Panel (b) show the complexity for RevBNs of different sizes. A detailed version of the complexity for QBNs and RevBNs can be consulted in Figure A5 and Figure A6, respectively.
Figure 5. Panel (a) shows the complexity for different QBN configurations. Connectivity was normalized to allow a direct comparison between networks of different sizes. Panel (b) show the complexity for RevBNs of different sizes. A detailed version of the complexity for QBNs and RevBNs can be consulted in Figure A5 and Figure A6, respectively.
Mathematics 09 00792 g005
Table 1. Tabular representation of the quantum mapping of (2).
Table 1. Tabular representation of the quantum mapping of (2).
σ 1 σ 2 U
00X
01H
10I
11H
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Franco, M.; Zapata, O.; Rosenblueth, D.A.; Gershenson, C. Random Networks with Quantum Boolean Functions. Mathematics 2021, 9, 792. https://doi.org/10.3390/math9080792

AMA Style

Franco M, Zapata O, Rosenblueth DA, Gershenson C. Random Networks with Quantum Boolean Functions. Mathematics. 2021; 9(8):792. https://doi.org/10.3390/math9080792

Chicago/Turabian Style

Franco, Mario, Octavio Zapata, David A. Rosenblueth, and Carlos Gershenson. 2021. "Random Networks with Quantum Boolean Functions" Mathematics 9, no. 8: 792. https://doi.org/10.3390/math9080792

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop