arXiv:2610.02930physics.opticsOct 2026

Manuscript Offprint

arXiv:2610.02930

A Theory of Nested Cascading in Directed Logic

Ihar Babushkin, Oliver Melchert, Ayhan Demircan, Uwe Morgner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ihar Babushkin, 1,2,3^{1,2,3} Oliver Melchert, 1,3^{1,3} Ayhan Demircan, 1,3^{1,3} and Uwe Morgner 1,3^{1,3}

1^{1}Institute of Quantum Optics, Leibniz University Hannover, Welfengarten 1, 30167 Hannover, Germany

2^{2}Max Born Institute, Berlin, Germany

3^{3}Cluster of Excellence PhoenixD (Photonics, Optics,

and Engineering - Innovation Across Disciplines),

Leibniz University Hannover, Welfengarten 1, 30167 Hannover, Germany ∗^{*}

In directed logic (DL), electronically controlled optical elements serve as photonic gates. Such electro-optical elements are of mixed nature: they have two inputs—electronic and optical—but only one, optical, output. This makes cascading such gates without repeated conversion between optical and electronic representations cumbersome. This problem can be largely overcome using the nested cascading scheme proposed by Shamir and Hardy [Opt. Express, 17, 150 (2007)]. Although promising as a solution to the cascading problem, the Shamir–Hardy scheme has so far been proved or implemented only for a few simplest cases. Here, we develop a general rigorous theory of nested cascading, valid for an arbitrary number of gates. We propose a variant of the algorithm which easily extendable to large number of gates, and rigorously prove its validity. Furthermore, we analyze how nested cascading scales with the size of the corresponding Boolean formula. We show that good (linear) scalability is guaranteed in many important cases, while the average scaling with respect to the corresponding Boolean formulas is only moderately polynomial, with an exponent of approximately 3/2. Yet, the worst-case scaling remains exponential with respect to more general Boolean circuits allowing sharing and reuse of intermediate results.

INTRODUCTION

Electronic logical switches and computing devices in general are known to consume large amounts of energy per operation compared to other computational architectures—for instance, the human brain. Besides, today's commonly used architectures suffer from the "von Neumann bottleneck" – the inherent conflict between data processing and data transfer to and from memory, resulting from the fundamentally sequential nature of such architectures. Popular approaches to overcoming these problems include delegating particular subtasks to specialized units, such as graphics processing units (GPUs), hard-coded neural networks, or specialized arithmetic logic units (ALUs).

On the other hand, during the last few years, large-scale programmable photonic integrated circuits (PICs) [2–8] have been developed. Such devices can often even be integrated directly into electronic circuits using established CMOS technology [2, 8–10]. At the same time, rapid progress in time-varying photonics [TVM]—including temporal cavity engineering [11], programmable spatio-temporal media [12], and all-optical control [13–21] has considerably expanded the range of dynamic optical functionalities available for photonic information processing.

One of these approaches is based (see Fig. 1) on optical elements such as couplers or cavities, forming a multi-port optical network. Every one of these optical elements is electronically controlled using, for instance, electro-optic or thermo-optic effects. In this way, the electronic signal reconfigures an otherwise linear optical network, allowing it to perform logical operations [1, 4, 22–34] or directly perform matrix multiplications [5, 35]. This approach has already proved its ability to overcome the overall power consumption and the dissipated power density limits compared to standard electronic units for clock frequencies beyond ∼\sim10 GHz [3].

The circuits performing logical operations in such a way are often gathered under the term “directed logic” (DL) [29, 31–34]. On the level of a single or a few elements, multiple physical realizations of DL have been suggested, using, as a basic element, a Mach-Zehnder interferometer Fig. 1b [26, 29] or cavities Fig. 1c coupled to propagation lines [25, 27, 32–34], electronically controlled using electro-optic [26] or thermo-optic [26, 27, 29, 32–34] effects.

When trying to connect such gates, we must remember that DL gates must be considered as devices with not only an optical input and output, but, in addition, also an electronic input (see Fig. 1a), the electronic signal determining the path taken by light, as mentioned above. The big advantage of DL is that, as soon as the electronic input is set, the processing of the optical signal takes place “with the speed of light” and, potentially, as long as losses are small, with nearly zero energy consumption [1, 22]. However, because the input contains both electronic and optical parts, whereas the output is only optical, cascading DL gates (that is, directing the output of one gate to the input of another) cannot be straightforward: for this, one needs to connect devices of different physical nature, electronic and optical. Of course, this can be achieved by converting the optical output into an electronic signal, but this operation is relatively slow and energy-intensive, and thus diminishes most of the potential power of DL. There are many possible variants of partial cascadability that work in particular cases; some

(a)

(b)

Figure

(c)

(d)

FIG. 1. (a) A basic element of DL, containing two inputs [optical (blue incoming arrow) and electronic (pink arrow)] and one optical output (blue outgoing arrow). The logical value aa, supplied via the electronic channel, controls the optical path, thereby realizing an aa-dependent linear operator PaP_a. (b,c) Exemplary realizations of a DL element PaP_a using a Mach–Zehnder interferometer (b) or a cavity (c). Yellow rectangles denote electro-optical or thermo-optical elements, controlled by the electronic input aa. (d) General idea of nested cascading suggested by Shamir and Hardy in [1], shown by example. An exemplary logical gate a∧ba \wedge b contains three basic DL elements: PaP_a, PbP_b, and Pa−1P_a^{-1} (the inverse of PaP_a), and an exemplary cascading step a∧b→(a∧c)∧ba \wedge b \to (a \wedge c) \wedge b. In the cascading procedure, we replace PaP_a with the nested definition of a∧ca \wedge c (see Fig. 3 for details).

of them are discussed in [36]. For instance, DL elements allow one to scalably calculate conjunctive normal forms (CNFs). Another example of partial cascading is the realization of an adder [3], where bitwise addition was performed electronically in parallel, whereas the carry bit was calculated using DL.

These examples put forward the following question: suppose we have an arbitrary Boolean function of a,b,c,…a, b, c, \ldots with nn variables, realized using logical gates such as OR or AND. Can we combine the corresponding optical DL gates into an optical circuit, so that, after we set all the electronic inputs a,b,c,…a, b, c, \ldots (and their negations a‾,b‾,c‾,…\overline{a}, \overline{b}, \overline{c}, \ldots) of our DL elements, the circuit produces the required Boolean function at the output? This is probably the strongest form of cascadability one can request from DL. In [1], Shamir and Hardy suggested a nested cascading approach to address this problem. In this approach, at every nesting step, a DL gate is replaced by a whole DL circuit implementing this gate (see Fig. 1d), giving rise to a recursive procedure. Yet, Shamir and Hardy's design for the nested-cascadable elements was rather cumbersome, denying a straightforward extension to an arbitrary number of gates; besides, it has been tested only on a few-gate configurations, and a rigorous justification and proof for arbitrarily complex cases is missing up to now.

In this article, we close this gap by developing a general theory of nested cascading. We prove rigorously that the main claim of Shamir and Hardy is indeed valid: one can construct a nested circuit implementing an arbitrary Boolean formula. We note that, whereas AND and OR do not form a universal gate set, in the DL paradigm it is as easy to set the logical variable a as its negation a‾\overline{a}. Once the negated variables are available, AND and OR gates alone are sufficient to represent any Boolean formula. Consequently, although the original proposal [1] included a larger set of gates, in this article we focus exclusively on AND and OR gates.

Furthermore, we consider the question of the scalability of nested cascading with the size of the corresponding Boolean expression. In nested logic, one of the two input variables is recursively duplicated, leading to a potentially exponential blowup. Whereas the naive approach to this question indeed suggests such a behavior [36, 37], the question is quite nontrivial because of the complex nature of nested cascading. We consider this question in detail, showing that both the worst-case and the typical scaling follow not an exponential but a power-law dependence with an exponent of 3/2 with respect to the corresponding Boolean formula. Moreover, for a large class of Boolean expressions, the number of DL gates grows only linearly with the number of logical gates.

(a)

Figure

(b)

FIG. 2. Basic DL gates, representing AND (a) and OR (b). Blue lines show the optical paths, pink lines indicate the paths for the electronic signals, and pink regions show electro-optical coupling. Numbers in the gray-shaded box indicate the corresponding input and output channels when these gates are used as standalone gates (rather than as part of a larger DL circuit). Up to the channel numbering, these gates are equivalent to those in [1].