Digital memcomputing machines (DMMs) are a novel, non-Turing class of machines designed to solve combinatorial optimization problems. They can be physically realized with continuous-time, non-quantum dynamical systems with memory (time non-locality), whose ordinary differential equations (ODEs) can be numerically integrated on modern computers. Solutions of many hard problems have been reported by numerically integrating the ODEs of DMMs, showing substantial advantages over state-of-the-art solvers. To investigate the reasons behind the robustness and effectiveness of this method, we employ three explicit integration schemes (forward Euler, trapezoid, and Runge–Kutta fourth order) with a constant time step to solve 3-SAT instances with planted solutions. We show that (i) even if most of the trajectories in the phase space are destroyed by numerical noise, the solution can still be achieved; (ii) the forward Euler method, although having the largest numerical error, solves the instances in the least amount of function evaluations; and (iii) when increasing the integration time step, the system undergoes a “solvable–unsolvable transition” at a critical threshold, which needs to decay at most as a power law with the problem size, to control the numerical errors. To explain these results, we model the dynamical behavior of DMMs as directed percolation of the state trajectory in the phase space in the presence of noise. This viewpoint clarifies the reasons behind their numerical robustness and provides an analytical understanding of the solvable–unsolvable transition. These results land further support to the usefulness of DMMs in the solution of hard combinatorial optimization problems.
Certain classical dynamical systems with memory, called digital memcomputing machines, have been suggested to solve a wide variety of combinatorial optimization problems.1 In particular, simulations of their ordinary differential equations (ODEs) on traditional computers, using explicit methods of integration, have shown substantial advantages over state-of-the-art algorithms. These results are remarkable considering the fact that the ODEs of these dynamical systems are stiff, hence should become highly unstable if integrated with explicit methods. In this work, by drawing a connection between directed percolation and state dynamics in phase space, we provide both numerical and analytical reasons why explicit methods of integration for these ODEs are robust against the unavoidable numerical errors.
I. INTRODUCTION
MemComputing is a recently proposed (non-Turing) computing paradigm in which time non-locality (memory) accomplishes both tasks of information processing and storage.2 Its digital (hence scalable) version (digital memcomputing machines or DMMs) has been introduced specifically to solve combinatorial optimization problems.1,3
The basic idea behind DMMs is that, instead of solving a combinatorial optimization problem in the traditional algorithmic way, one maps it into a specifically designed dynamical system with memory so that the only equilibrium points of that system represent the solutions of the given problem. This is accomplished by writing the problem in Boolean (or algebraic) form and then replacing the traditional (unidirectional) gates with self-organizing gates that can satisfy their logical (or algebraic) relation irrespective of the direction of the information flow, whether from the traditional input or the traditional output: they are terminal-agnostic gates.1,3–5 In addition, the resulting dynamical systems can be designed so that no periodic orbits or chaos occur during dynamics.6,7
DMMs then map a finite string of symbols into a finite string of symbols, but operate in continuous time, hence they are distinct from Turing machines that operate in discrete time. (Note that universal memcomputing machines have been shown to be Turing-complete, but not Turing-equivalent.8) As a consequence, they seem ideally suited for a hardware implementation. In fact, they can be realized in practice with non-linear, non-quantum dynamical systems with memory, such as electrical circuits implemented with conventional complementary metal–oxide–semiconductor technology.3
On the other hand, DMMs, being classical dynamical systems, are such that their state trajectory belongs to a topological manifold, known as phase space, whose dimension, , scales linearly with the number of degrees of freedom.9 In addition, their state dynamics are described by ordinary differential equations (ODEs).1,3 One can then attempt to numerically integrate these ODEs on our traditional computers, using any integration scheme.10 However, naively, one would expect that the computational overhead of integrating these ODEs, coupled with large numerical errors, would require an unreasonable amount of CPU time as the problem size grew, hence limiting the realization of DMMs (like quantum computers) to only hardware.
To make things worse, the ODEs of DMMs are stiff,10 meaning that they have several, quite distinct, intrinsic time scales. This is because the memory variables of these machines have a much slower dynamics than the degrees of freedom representing the logical symbols (variables) of the problem.1,3 Stiff ODEs are notorious for requiring implicit methods of integration, which, in turn, require costly root-finding algorithms (such as Newton’s method), thus making the numerical simulations very challenging.10
This leads one to expect poor performance when using explicit methods, such as the simplest forward Euler method, on the ODEs of the DMMs. Instead, several results using the forward Euler integration scheme on DMMs have shown that these machines still find solutions to a variety of combinatorial optimization problems, including Boolean satisfiability (SAT),7 maximum satisfiability,11,12 spin glasses,13 machine learning,14,15 and integer linear programming.4
For instance, in Ref. 7, the numerical simulations of the DMMs, using forward Euler with an adaptive time step, substantially outperform traditional algorithms,16–18 in the solution of 3-SAT instances with planted solutions. The results show a power-law scaling in the number of integration steps as a function of problem size, avoiding the exponential scaling seen in the performance of traditional algorithms on the same instance classes. Furthermore, in Ref. 7, it was found that the average size of the adaptive time step decayed as a power-law as the problem size grew.
It is then natural to investigate how the power-law scaling of integration steps varies with the numerical integration scheme employed to simulate the DMMs. In particular, by employing a constant integration time step, , we would like to investigate if the requisite time step to solve instances and control the numerical errors continues to decay with a power law or will require exponential decay as the problem grows.
In this paper, we perform the above investigations while attempting to solve some of the planted-solution 3-SAT instances used as benchmarks in Ref. 7. We will implement three explicit integration methods (forward Euler, trapezoid, and Runge–Kutta fourth order) while numerically simulating the DMM dynamics to investigate the effect on scalability of the number of integration steps vs the number of variables at a given clause-to-variable ratio.
Our numerical simulations indicate that, regardless of the explicit integration method used, the ODEs of DMM are robust against the numerical errors caused by the discretization of time. The robustness of the simulations is due to the instantonic dynamics of DMMs,19,20 which connect critical points in the phase space with increasing stability. Instantons in dissipative systems are specific heteroclinic orbits connecting two distinct (in index) critical points. Both the critical points and the instantons connecting them are of topological character.21,22 Therefore, if the integration method preserves critical points (in number and index), then the solution search is “topologically protected” against reasonable numerical noise.23
For each integration method, we find that when increasing the integration time step , the system undergoes a “solvable–unsolvable transition”24 at a critical , which decays at most as a a power law with the problem size, avoiding the undesirable exponential decay that severely limits numerical simulations. We also find that, even though higher-order integration schemes are more favorable in most scientific problems, the first-order forward Euler method works the best for the dynamics of DMMs, providing best scalability in terms of function evaluations vs the size of the problem. We attribute this to the fact that the forward Euler method preserves critical points, irrespective of the size of the integration time step, while higher order methods may introduce “ghost critical points” in the system,25 disrupting the instantonic dynamics of DMMs.
Finally, we provide a physical understanding of these results, by showing that, in the presence of noise, the dynamical behavior of DMMs can be modeled as a directed percolation of the state trajectory in the phase space, with the inverse of the time step playing the role of percolation probability. We then analytically show that, with increasing percolation probability, the system undergoes a permeable-absorbing phase transition, which resembles the “solvable–unsolvable transition” in DMMs. All together, these results clarify the reasons behind the numerical robustness of the simulations of DMMs and further reinforce the notion that these dynamical systems with memory are a useful tool for the solution of hard combinatorial optimization problems, not just in their hardware implementation but also in their numerical simulation.
This paper is organized as follows. In Sec. II, we review the DMMs used in Ref. 7 to find satisfying assignments to 3-SAT instances. (Since our present paper is not a benchmark paper, the interested reader is directed to Ref. 7 for a comparison of the DMM approach to traditional algorithms for 3-SAT.) In Sec. III, we compare the results on the scalability of the number of steps to reach a solution for three explicit methods: forward Euler, trapezoid, and Runge–Kutta fourth order. For all three methods, our simulations show that increasing (thereby increasing numerical error) induces a sort of “solvable–unsolvable phase transition” that becomes sharper with increasing size of the problem. However, we also show that the “critical” time step, , decreases as a power law as the size of the problem increases for a given clause-to-variable ratio. In Sec. IV, we model this transition as a directed percolation of the state trajectory in phase space, with playing the role of the inverse of the percolation probability. We conclude in Sec. V with thoughts about future work.
II. SOLVING 3-SAT WITH DMMs
In the remainder of this paper, we will focus on solving satisfiable instances of the 3-SAT problem,26 which is defined over Boolean variables constrained by clauses. Each clause consists of three (possibly negated) Boolean variables connected by logical OR operations, and an instance is solved when an assignment of is found such that all clauses evaluate to TRUE (satisfiable).
For completeness, we briefly review the dynamical system with memory representing our DMM. The reader is directed to Ref. 7 for a more detailed description and its mathematical properties.
To find a satisfying assignment to a 3-SAT instance with a DMM, we transform it into a Boolean circuit, where the Boolean variables are transformed into continuous variables and represented with terminal voltages (in arbitrary units), where corresponds to and corresponds to . We use to represent the th clause, where or depending on whether is negated in this clause. Each Boolean clause is also transformed into a continuous constraint function,
where if and if . We can verify that the th clause evaluates to true if and only if .7
The idea of DMMs is to propagate information in the Boolean circuits “in reverse” by using self-organizing logic gates (SOLGs)1,3 (see Ref. 4 for an application of algebraic ones).
SOLGs are designed to work bidirectionally, a property referred to as “terminal agnosticism.”5 The terminal that is traditionally an output can now receive signals like an input terminal, and the traditional input terminals will self-organize to enforce the Boolean logic of the gate. This extra feature requires additional (memory) degrees of freedom within each SOLG. We introduce two additional memory variables per gate: “short-term” memory and “long-term” memory . For a 3-SAT instance, the dynamics of our self-organizing logic circuit (SOLC) are governed by7
where , , . The “gradient-like” term [] and the “rigidity” term [ if , and , otherwise] are discussed in Ref. 7 along with other details.
III. NUMERICAL SCALABILITY WITH DIFFERENT INTEGRATION SCHEMES
A. Numerical details
To simulate Eq. (2) on modern computers, we need an appropriate numerical integration scheme, which necessitates the discretization of time. In Ref. 7, we applied the first-order forward Euler method, which, in practice, tends to introduce large numerical errors in the long-time integration. Yet, the massive numerical error in the trajectory of the ODE solution does not translate into logical errors in the 3-SAT solution. The algorithm in Ref. 7 was capable of showing power-law scalability in the typical case of clause distribution control (CDC) instances,26 though, using an adaptive time step.
To further understand this robustness, we study here the behavior of Eq. (2) under different explicit numerical integration methods using a constant time step, . We will investigate the effect of increasing the time step. Writing the ODEs as , with being the collection of voltage and memory variables and being the flow vector field,1 we use the following explicit Runge–Kutta time step:10
where . Specifically, we apply three different integration schemes: forward Euler method with , ; trapezoid method with , , ; fourth order Runge–Kutta method (RK4) with , , and
Note that Eq. (2) is stiff, meaning that the explicit integration methods we consider here should diverge quite fast, within a few integration steps, irrespective of the problem instances we choose.10 However, as we will show below, the explicit integration methods actually work very well for these equations, and the integration time step can even be chosen quite large.
As an illustration, we focus on planted-solution 3-SAT instances at clause-to-variable ratio .27 These instances require exponential time to solve using the local-search algorithm walk-SAT26 and other state-of-the-art solvers.7 In Appendix A, we will show similar results for .
We start with 100 CDC 3-SAT instances with the number of variables and solve them by numerically integrating Eq. (2) using the forward Euler method with different values of . For each 3-SAT instance, we made 100 individual attempts with different random initial conditions so that the total number of solution attempts is . In Fig. 1, we see the number of unsolved instances decreases rapidly until reaching a plateau. When the simulations are performed again with a smaller time step, the plateau height decreases. Once reached, the plateau persists while increasing the number of integration steps.
B. Basin of attraction
We argue that the plateaus in Fig. 1 are caused by a reduction in the basin of attraction in Eq. (2), created by the numerical integration method, rather than the hardness of the instances themselves. To show this, first note that all solution attempts succeed when (basin of attraction is the entire phase space), while almost all attempts fail when (basin of attraction shrinks to zero size). When falls in between, for each 3-SAT instance, the number of unsolved attempts is centered around the shaded area in Fig. 1. That is, at a certain , the size of the basin of attraction for different instances is approximately the same.
We use to denote the ratio between the volume of the basin of attraction and the volume of the entire phase space. In Fig. 2, we estimate this quantity by calculating the fraction of solved instances for each number of variables and time step for 100 different 3-SAT instances per size and 10 initial conditions per instance. At smaller , all instances with all different initial conditions are solved, i.e., the basin of attraction is the entire phase space, . This is in agreement with theoretical predictions for continuous-time dynamics.7 On the other hand, when is too large, the structure of the phase space gets modified by the numerical error introduced during discretization, and . This is a well-known effect that has been studied also analytically in the literature.28
Plotting vs for different number of variables and different integration schemes, we get a series of sigmoid-like curves (Fig. 2) that become sharper as increases. This suggests the existence of a “phase transition”: when going beyond a critical , there is a drastic change in , and the system undergoes a solvable–unsolvable transition.
C. Integration step scalability
The above results allow us to determine how the integration step, , for the three integration schemes we have chosen, scales as the size of the problem increases. In Fig. 3, we define such that and determine the relation between and .
We find scales as a power law with the number of variables . This is a major result because it shows that we do not need to decrease exponentially to have the same success rate. In Ref. 7, it was demonstrated, using topological field theory,19,20 that in the ideal (noise-free) continuous-time dynamics, the physical time required for our dynamical system to reach the solution scales as , with .
Our numerical results show that, when simulating the dynamics with numerical integration schemes on classical computers, . Coupled with the previous analytical results,7 this means that the number of integration steps scales as . In other words, discretization only adds a overhead to the complexity of our algorithm, indicating that DMMs can be efficiently simulated on classical computers.29
In Fig. 3, note that for all three integration methods. This is quite unexpected for a stiff system simulated with explicit integration methods, because a large time step introduces large local truncation errors at each step of the integration. This error accumulates and should destroy the trajectory of the ODEs we are trying to simulate. However, we can still solve all tested instances with Eq. (2) even at such a large . In Sec. IV, we will provide an explanation of why this is possible.
Here, we note that choosing an appropriate could speed up the algorithm significantly, as smaller leads to excessive integration steps, while larger may cause the solver to fail. To find an appropriate time step for our scalability tests, we choose from Fig. 2 such that of the trials have found a solution and multiply that by a “safety factor” of to make sure we hit the region of .
By employing the resulting value of , we plot in Fig. 4 the typical-case and 90th percentile scalability curves up to . For each variable size, , we perform 1000 3-SAT solution trials (100 instances and 10 initial conditions each) and report the number of integration steps when and of the trials are solved. Additionally, we report the number of function evaluations [namely, the number of times the right-hand side of Eq. (2) is evaluated], which differs from the number of integration steps by only a constant.
Both quantities show a power-law scalability for all three integration schemes. Since is larger for higher-ordered ODE solvers, the latter ones typically require fewer steps to solve the problems. However, when taking the total number of function evaluations into account, the simplest forward Euler method becomes the most efficient integration scheme for our ODEs.
IV. DIRECTED PERCOLATION AND NOISE IN DMMs
As anticipated, our results are unexpected in view of the large truncation errors introduced during the simulations of the ODEs of the DMMs. However, one might have predicted the numerical robustness upon considering the type of dynamics the DMM executes in phase space.
A. Instantonic dynamics
Instantons are topologically non-trivial solutions of the equations of motion connecting two different critical points (classical vacua in field-theory language).30 In dissipative systems, as the ones considered in this work, instantons connect two critical points (such as saddle points, local minima or maxima) that differ in index (number of unstable directions). In fact, they always connect a critical point with higher index to another with lower index.21,22
It was shown in Refs. 19 and 20 that, by stochastically quantizing the DMM’s equation of motion, one obtains a supersymmetric topological field theory, from which it can be deduced that the only “low-energy,” “long-wavelength” dynamics of DMMs is a collection of elementary instantons (a composite instanton). Critical points are also of topological character. For instance, their number cannot change unless we change the topology of phase space.31
In addition, given two distinct (in terms of indexes) critical points, there are several (a family of) trajectories (instantons) that may connect them, since the unstable manifold of the “initial” critical point may intersect the stable manifold of the “final” critical point at several points in the phase space. In the ideal (noise-free) continuous time dynamics, if the only equilibria (fixed points of the dynamics) are the solutions of the given problem (as shown, e.g., in Refs. 3 and 7), then the state trajectory is driven toward the equilibria by the voltages that set the input of the problem the DMM attempts to solve.
B. Physical noise
In the presence of (physical) noise instead, anti-instantons are generated in the system. These are (time-reversed) trajectories that connect critical points of increasing index. However, anti-instantons are gapped, in the sense that their amplitude is exponentially suppressed with respect to the corresponding amplitude of the instantons.32 This means that the “low-energy,” “long wave-length” dynamics of DMMs is still a succession of instantons, even in the presence of (moderate) noise.
Nevertheless, suppose an instanton connects two critical points, and immediately after an anti-instanton occurs for the same critical points (even if the two trajectories are different). For all practical purposes, the “final” critical point of the original instanton has never been reached and that the critical point can be called absorbing, in the sense that the trajectory would “get stuck” on that one, or wanders in other regions of the phase space. In other words, in the presence of noise, there is a finite probability for some state trajectory to explore a much larger region of the phase space. The system then needs to explore some other (anti-)instantonic trajectory to reach the equilibria, solutions of the given problem. Nevertheless, due to the fact that anti-instantons are gapped, and the topological character of both critical points and instantons connecting them, if the physical noise level is not high enough to change the topology of the phase space, the dynamical system would still reach the equilibria.33
On the other hand, if the noise level is too high, our system may experience a condensation of instantons and anti-instantons, which can break supersymmetry dynamically.34 In turn, this supersymmetry breakdown can produce a noise-induced chaotic phase even if the flow vector field remains integrable. Although we do not have an analytical proof of this yet, we suspect that this may be related to the unsolvable phase we observe.
C. Directed percolation
If we visualize the state trajectory as the one traced by a liquid in a corrugated landscape, the above suggests an intriguing analogy with the phenomenon of directed percolation (DP),35 with the critical points acting as “pores” and instantons as “channels” connecting “neighboring” (in the sense of index difference) critical points.
DP is a well-studied model of a non-equilibrium (continuous) phase transition from a fluctuating permeable phase to an absorbing phase.35 It can be intuitively understood as a liquid passing through a porous substance under the influence of a field (e.g., gravity). The field restricts the direction of the liquid’s movement, hence the term “directed.” In this model, neighboring pores are connected by channels with probability and disconnected otherwise. When increasing , the system goes through a phase transition from the absorbing phase into a permeable phase at a critical threshold .
D. Numerical noise
In numerical ODE solvers, discrete time also introduces some type of noise (truncation errors), and the considerations we have made above on the presence of anti-instantons still hold. However, numerical noise could be substantially more damaging than physical noise. The reason is twofold.
First, as we have already anticipated, numerical noise accumulates during the integration of the ODEs. In some sense, it is then always non-local. Physical noise, instead, is typically local (in space and time), hence it is a local perturbation of the dynamics.36 As such, if it is not too large, it cannot change the phase space topology.
Second, unlike physical noise, integration schemes may change the topology of phase space explicitly. This is because, when one transforms the continuous-time ODEs (2) into their discrete version (a map), this transformation can introduce additional critical points in the phase space of the map, which were not present in the original phase space of the continuous dynamics. These extra (undesirable) critical points are sometimes called ghosts.25 For instance, while the forward Euler method can never introduce such ghost critical points, irrespective of the size of (because both the continuous dynamics and the associated map have the same flow field ), both the trapezoid and Runge-Kutta fourth order may do so if is large enough. These critical points would then further degrade the dynamics of the system.
With these preliminaries in mind, let us now try to quantify the analogy between the DMM dynamics in the presence of numerical noise and directed percolation.
E. Paths to solution
First of all, the integration step, , must be inversely related to the percolation probability : when tends to zero, the discrete dynamics approach the ideal (noise-free) dynamics for which . In the opposite case, when increases, must decrease.
In directed percolation, the order parameter is the density of active sites.35 This would correspond to the density of “achievable” critical points in DMMs. However, due to the vast dimensionality of their phase space (even for relatively small problem instances), this quantity is not directly accessible in DMMs.
Instead, what we can easily evaluate is the ratio of successful solution attempts: starting from a random point in the phase space [initial condition of the ODEs (2)], and letting the system evolve for a sufficiently long time, a path would either successfully reach the solution (corresponding to a permeable path in DP) or fail to converge (corresponding to an absorbing path in DP) . By repeating this numerical experiment for a large number of trials, the starting points of the permeable paths essentially fill the basin of attraction of our dynamical system. The advantage of considering this quantity is that the ratio of permeable paths in bond DP models can be calculated analytically.
Now we setup the correspondence of paths between DP and DMM. In DP, a permeable path is defined to be a path that starts from the top of the lattice and ends at the bottom and corresponds to a successful solution attempt in DMMs. Similarly, an absorbing path starts from the top and terminates within the lattice in DP and corresponds to a failed solution attempt in DMMs. Consider then a 3-SAT problem with only one solution. A DMM for such a problem can reach the solution from several initial conditions. This translates into a -dimensional cone-shaped lattice for the DP model (see Fig. 5). The (top) base of the cone would represent the starting points, and the apex of the cone would represent the solution point. A permeable path connects the base to the apex, and an absorbing path ends in the middle of the lattice with all bonds beneath it disconnected.
Note that, in the DP model, it is possible to have different permeable paths starting from the same initial point. However, from the perspective of DMMs, there is no randomness in the dynamics, and each initial condition corresponds to a unique path. Since DP is a simplified theoretical model to describe numerical noise in DMMs, in this model we assume that the trajectory “randomly chooses” a direction when reaching a critical point. This is a reasonable assumption since there can be a large number of instantons starting from some critical point in the phase space, and it is almost impossible for us to actually monitor which instantonic path the trajectory follows.
With this correspondence in mind, the ratio of permeable paths in DP is analogous to the ratio of successful solution attempts in DMMs. Below, we will calculate this quantity exactly in DP and use this calculation to model the solvable–unsolvable transition we found in DMMs.
To begin with, we assume that all starting points are occupied with equal probability and calculate the expectation of the number of permeable and absorbing paths. This can be done iteratively: the expected number of permeable paths at a given site equals the sum of permeable paths at its predecessor sites, times , the percolation probability. Assuming the number of time steps required to reach the apex is , then the expected number of permeable paths
An illustration of the calculation on a cone-shaped 2D lattice is shown in Fig. 5.
The number of absorbing paths is trickier to compute. Details of the calculation can be found in Appendix B, here we only give the approximate result (valid for ) near the transition,
The ratio of permeable paths is simply ,
We observe that the transition occurs at . Near the transition, let us define , where is small. Then, . Further using , to order , Eq. (7) becomes
In the limit of , the divergence comes from the in the exponent. Therefore, the transition happens exactly at . When , ; when , .
Note that when , the term dominates over the term instead. However, in this case, is too small, and some approximations we made in Appendix B to derive no longer hold. In this sense, Eqs. (7) and (8) are only valid near the transition point .
The behavior of Eq. (7) is plotted in Fig. 6 for different dimensions . Comparing to Fig. 2, we can already see a few similarities: both figures exhibit a sigmoidal behavior. However, as in DMMs is inversely related to in DP, they are curving in opposite directions.
Recall that the size of the basin of attraction, , in DMMs corresponds to the ratio in DP. To model their relation, we then use the ansatz , with and being some real numbers, and fit to using Eq. (7). (Note that this trial function has a meaning only near .)
We find that we can fit the curves reasonably well by fixing , and Fig. 7 shows the fitting result of and , where the number of variables ranges between and , and each data point is obtained by numerically integrating Eq. (2) for 1000 3-SAT solution attempts (100 instances and 10 initial conditions each), until a plateau, as in Fig. 1, has been reached. Note that the horizontal axis represents .
The fitted parameters and are shown in Fig. 8, where both parameters exhibit a power-law scaling. At the transition threshold , we have . Therefore, the power-law scaling of is closely related to the power-law scaling of in Fig. 3, and these two scalings show similar trends.
The dimensionality is proportional to the dimensionality of the composite instanton (namely, the number of elementary instantons to reach the solution). In Ref. 20, this dimensionality was predicted to scale (sub-)linearly with the number of variables (in the noise-free case), and it is smaller than the dimensionality of the actual phase space [ in the present case]. This prediction agrees with our numerical results.
Finally, using the correspondence between DMMs in the presence of noise and DP, we can qualitatively explain why the DMMs numerically integrated still provide solution to the problem they are designed to solve even with such large numerical errors introduced during integration. In DMMs, the dimensionality of the composite instanton, , is usually very large, and DP tells us that the percolation threshold .
Therefore, even if most of the paths in the phase space are destroyed by noise, we can still achieve the solution as long as the probability of an instantonic path is larger than . This argument, in tandem with the fact that critical points and instantons have a topological character,21,22 ensures the robustness of DMMs in numerical simulations.
V. CONCLUSIONS
In conclusion, we have shown that the dynamics of digital memcomputing machines (DMMs) under discrete numerical solvers can be described as a directed percolation of state trajectory in the phase space. The inverse time step, , plays the role of percolation probability, and the system undergoes a “solvable-unsolvable phase transition” at a critical , which scales as a power law with problem size. In other words, for the problem instances considered, we have numerically found that the integration time step does not need to decrease exponentially with the size of the problem, in order to control the numerical errors.
This result is quite remarkable considering the fact that we have only employed explicit methods of integration (forward Euler, trapezoid, and Runge–Kutta fourth order) for stiff ODEs. (In fact, the forward Euler method, although having the largest numerical error, solves the instances in the least amount of function evaluations.) It can be ultimately traced to the type of dynamics the DMMs perform during the solution search, which is a composite instanton in phase space. Since instantons, and the critical points they connect, are of topological character, perturbations to the actual trajectory in phase space do not have the same detrimental effect as the changes in topology of the phase space.
Since numerical noise is typically far worse than physical noise, these results further reinforce the notion that these machines, if built in hardware, would be topologically protected against moderate physical noise and perturbations.
However, let us note that we did not prove that the dynamics of DMMs with numerical (or physical) noise belong to the DP universality class. In fact, according to the DP-conjecture,37,38 a given model belongs to such a universality class if (i) the model displays a continuous phase transition from a fluctuating active phase into a unique absorbing state; (ii) the transition is characterized by a non-negative one-component order parameter; (iii) the dynamic rules are short-ranged; and (iv) the system has no special attributes such as unconventional symmetries, conservation laws, or quenched randomness.
It is easy to verify that DMMs under numerical simulations satisfy properties (iii) and (iv). However, verifying properties (i) and (ii) is not trivial, as the relevant order parameters are not directly accessible due to the vast phase space of DMMs. Still, the similarities we have outlined in this paper, between DMMs in the presence of noise and DP, help us better understand how these dynamical systems with memory work and why their simulations are robust against the unavoidable numerical errors.
ACKNOWLEDGMENTS
We thank Sean Bearden for providing the MATLAB code to solve the 3-SAT instances with DMMs, as well as insightful discussions. The work was supported by NSF under Grant No. 2034558. All memcomputing simulations reported in this paper have been done on a single core of an AMD EPYC server.
DATA AVAILABILITY
The data that support the findings of this study are available from the corresponding author upon reasonable request.
APPENDIX A: RESULTS FOR
Here, we show that the results presented in the main text hold also for other clause-to-variable ratios. As examples, we choose . (Similar scalability results have been already reported in Ref. 7 for .) In particular, we find similar scaling behavior for for all clause-to-variable ratios, with of course, different power laws.
Figure 9 has been obtained as discussed in the main text and shows vs number of variables for .
In Fig. 10, instead we show the scalability curves for , considering all three explicit integration methods. As in the main text, we find that the forward Euler method, although having the largest numerical error, solves the instances in the least amount of function evaluations for . Every data point in the curves is obtained with 100 3-SAT instances, with 10 solution trials for each instance.
APPENDIX B: CALCULATING THE NUMBER OF ABSORBING PATHS IN DIRECTED PERCOLATION
Here, we give a detailed calculation of the number of absorbing paths we outlined in Sec. IV E. We use to denote the dimension of the lattice where percolation takes place (corresponding to the dimension of the DMM phase space), to denote the number of steps to reach the bottom of the lattice (corresponding to the number of instantonic steps to reach the solution in DMMs), and to denote the percolation probability. Throughout the calculation, we use the approximation that , as both and are very large in DMMs.
As we illustrated in Sec. IV E, the expected number of permeable paths at time step (i.e., the th level in the lattice in Fig. 5, where starts from 0) is
The number of absorbing paths at each site is the number of permeable paths at that site, times , the probability that all bonds beneath it are disconnected. Note that this probability has a different expression at the boundary of the lattice, but as and are large, we ignore the boundary effect here. Meanwhile, the number of sites at each time step , to the leading order, equals to the volume of a -dimensional hyperpyramid,
Then, the total number of absorbing paths is
To get rid of the summation in Eq. (B3), we approximate it by adding the negligible term and replace the summation with an integral,
where is the lower incomplete gamma function, and the result is valid for .
To further simplify , we use the relation39
where is the truncated exponential series. Then,
where
is a number between 0 and 1.
Let us define
Using Stirling’s formula, we have
We can check that , as a function of , reaches its maximum near . Let us expand near ,
Then,
Near the maximum , we have
which is a normal distribution with mean value and standard deviation . Figure 11 shows the comparison of the original and its approximation. We can see that the approximation is very good.
Then, we have
where is the cumulative distribution function of the standard normal distribution.
Back to Eq. (B7), we finally have
where is the complementary error function.
In DMMs, each instanton connects two critical points whose indices (number of unstable directions) differ by 1.7 Since the index of a critical point equals at most the dimension , and the index of the equilibrium point is , we have , and Eq. (B14) simplifies to
Therefore,
which is Eq. (6) in the main text.