- Altmetric
Arbitrary linear transformations are of crucial importance in a plethora of photonic applications spanning classical signal processing, communication systems, quantum information processing and machine learning. Here, we present a photonic architecture to achieve arbitrary linear transformations by harnessing the synthetic frequency dimension of photons. Our structure consists of dynamically modulated micro-ring resonators that implement tunable couplings between multiple frequency modes carried by a single waveguide. By inverse design of these short- and long-range couplings using automatic differentiation, we realize arbitrary scattering matrices in synthetic space between the input and output frequency modes with near-unity fidelity and favorable scaling. We show that the same physical structure can be reconfigured to implement a wide variety of manipulations including single-frequency conversion, nonreciprocal frequency translations, and unitary as well as non-unitary transformations. Our approach enables compact, scalable and reconfigurable integrated photonic architectures to achieve arbitrary linear transformations in both the classical and quantum domains using current state-of-the-art technology.
Photonic processors that can perform arbitrary tasks are in demand for many applications. Here, the authors present a photonic architecture using waveguide and resonator couplings to perform arbitrary linear transformations, by taking advantage of the frequency synthetic dimension.
Introduction
Arbitrary linear transformations in photonics1–3 are of central importance for optical quantum computing4, classical signal processing and deep learning5–10. A variety of architectures are being actively studied to implement linear transformations for quantum computation and photonic neural networks, including those based on Mach–Zender interferometers (MZI)4,5, microring weight banks6,7,11, phase-change materials8,9, and diffractive metasurfaces10. All such approaches use path encoding of photons in real space. By contrast, implementing such linear transformations in the frequency space would open avenues beyond those possible with previously reported architectures, which are inherently time-invariant. For example, frequency-space transformations allow spectrotemporal shaping of light and generation of new frequencies, with wide-ranging applications in frequency metrology, spectroscopy, communication networks, classical signal processing12–14 and linear optical quantum information processing15–24. Nonlinear optics has traditionally been the workhorse for such spectrotemporal shaping, but the requirement of high-power fields and the difficulty of implementing arbitrary linear transformations motivates new architectures for manipulating states in the frequency domain. To that end, photonic synthetic dimensions offer an attractive solution to implement linear transformations in a single physical waveguide by harnessing the internal degrees of freedom of a photon25–32. Synthetic frequency dimensions in particular offer a small spatial footprint and inherent reconfigurability since multiple frequency modes can be addressed simultaneously, and the short- and long-range coupling29,30,33,34 between them can be controlled by applying an appropriate time-domain signal to a modulator.
Previous works have considered implementing photonic linear transformations using different frequency channels in parallel but without frequency conversions among them6,7,9,11 by demultiplexing the different frequencies into separate spatial channels. Additionally, optimized fast modulation has been used for tailoring single photon spectra from two-level quantum emitters35, or for quantum frequency conversion15 and linear optical quantum computation17,36, where the modulator is used as a generalized beam splitter in synthetic frequency dimensions. However, the design of an entire scattering matrix that implements an arbitrary N × N linear transformation in synthetic space, which is essential for many applications in quantum information processing and neural networks, has not yet been shown.
Here, we show that arbitrary linear transformations can be performed directly in the synthetic space spanned by the different frequency modes carried by a single physical waveguide. We use gradient-based inverse design to automate the process of designing the linear transformations, and demonstrate that a wide variety of transformations can be realized. As examples, we show single-frequency conversion, nonreciprocal frequency translations as well as general arbitrary unitary and non-unitary transformations, all achieved with high fidelities in a fully reconfigurable fashion.
Results
Theory
Consider a ring of radius R formed by a single mode waveguide with a refractive index n. The ring is coupled to an external waveguide of the same refractive index. Assuming sufficiently weak coupling between the ring and the external waveguide and neglecting group-velocity dispersion, the eigenmodes of the ring occur at frequencies ωm = ω0 + mΩR, where ω0 is the central frequency, m is an integer and ΩR = c/nR is the free spectral range (FSR) of the ring in angular frequency units, with c being the speed of light in vacuum. These eigenmodes take the form , where m0 denotes the angular momentum of the 0th mode and ϕ is the azimuthal coordinate of the ring. Corresponding to these eigenmodes, we define





Setup to implement arbitrary linear transformations in frequency space.
a An array of dynamically modulated rings (orange) coupled to an external waveguide. The green blocks represent electro-optic modulators (EOMs) and the black line is an external waveguide coupling to each of the rings. The output spectrum on the right is the result of the transformation implemented by the system on the input spectrum (left). b Detailed view of a single ring depicting the waveguide port inputs and outputs
If the δϵl’s are real, i.e., only the real part of the refractive-index is modulated, then


The main objective of our paper is to show that an arbitrary scattering matrix of size (2Nsb + 1) × (2Nsb + 1) can be created. To that end, we first note that the number of real degrees of freedom in the scattering matrix (Eq. (5)) of a single ring under modulation is equal to twice the number of distinct modulation tones, 2Nf, provided the modulation amplitudes δϵl and phases θl are independently controllable. Since the system is truncated to have 2Nsb + 1 frequencies, the largest harmonic of ΩR that will result in nonzero coupling between any two modes is 2Nsb, i.e., Nf ≤ 2Nsb. Since an arbitrary unitary matrix of size (2Nsb + 1) × (2Nsb + 1) has
Below, we optimize these 2NfNr degrees of freedom to enable physical approximation of arbitrary unitary and certain non-unitary transformations. For unitary transformations or parts thereof, we use as the objective function the fidelity, which measures the accuracy of an approximation V to a unitary transformation U:

Implementation of linear transformations
For the results in this Section, we assume that the ring-waveguide system under consideration operates with Nsb = 2, i.e., 5 equally spaced lines followed by at least 4 perturbed lines on each side. The five relevant modes are indexed {−2, −1, 0, 1, 2}. For simplicity, we assume that all five ring modes couple to the waveguide with equal strength, i.e.,
First, we consider the application of such ring-waveguide networks to implement high-fidelity frequency translation that is useful for frequency-domain beam-splitters or single-qubit gates. As an example, we show a design where an input signal in mode 0, after forward propagation through the network, results in a complete conversion to mode +2. Using our inverse-design framework, such a frequency translation corresponds to designing only one column of a unitary transformation and can be achieved with a fidelity exceeding 1 − 10−5 using just two rings and two modulation tones per ring, as shown in Fig. 2a, b. In Fig. 2c, we present the error function versus the number of iterations. The error function is defined as 1 − F+2, where F+2 is the normalized output photon flux in the mode +2. After a few iterations, almost all the photon flux is converted to frequency ω+2 at the output.


Frequency translation.
A two-ring system with two modulation tones per ring (Nr = 2, Nf = 2) demonstrating a conversion efficiency exceeding 1 − 10−5 from mode 0 to +2. The bar plots show log-scale photon flux in each mode at a the input, and b the output. c The error function shown as a function of the number of iterations of the optimization algorithm to achieve the conversion efficiency of b. Modulation parameters are provided in Supplementary Note 6.
In addition to such high-fidelity frequency conversion implemented in forward propagation through the network, the transformations achieved in this architecture can be different in forward and reverse propagation due to the relative phase shift between the modulation tones across the different rings and the explicit time-varying nature of the dynamically modulated system43. This is in sharp contrast with MZI-based architectures, which are inherently reciprocal. As an example, we show in Fig. 3 that we can simultaneously realize with a fidelity exceeding 1 − 10−5 a frequency shift, say, 0 → 2, in forward propagation (Fig. 3a) and a different shift, say, 2 → 1, in reverse propagation (Fig. 3b) with three modulated rings.


Nonreciprocal frequency conversion.
A three-ring system with three modulation tones per ring, demonstrating a a conversion efficiency exceeding 1 − 10−5 from mode 0 to mode +2 in forward propagation. The input and output field profiles are indicated by sL and sR, respectively, and b the complex-conjugated output profile,
Achieving frequency shifts using modulated rings, as shown in Figs. 2 and 3, requires designing only one and two columns of the 5 × 5 unitary matrix, respectively. On the other hand, if the number of modulation tones Nf and/or the number of rings Nr are increased, an arbitrary unitary transformation can be achieved with a high fidelity. As an example, we depict in Fig. 4a a 5 × 5 permutation matrix U, defined by U13 = U24 = U35 = U42 = U51 = 1, and zero otherwise. In Fig. 4b, we present the amplitudes of the matrix achieved using one ring and four modulation tones, resulting in a fidelity of 1 − 5.9 × 10−3. With four rings and four modulation tones, the fidelity is boosted to over 1 − 3.8 × 10−6, as shown by the amplitudes in Fig. 4c. In Fig. 4d, we tabulate as a function of Nr and Nf one minus the maximum fidelities obtained in approximating the 5 × 5 permutation matrix, showing that very high fidelities can be achieved using a wide variety of Nr and Nf combinations.


Implementing elementwise amplitudes of a matrix.
a A 5 × 5 permutation matrix to be implemented by the ring-waveguide system. The amplitudes of the matrix elements are indicated along with a green colormap. Element-wise amplitudes of the optimized result using four modulation tones (Nf = 4) and b one ring (Nr = 1), achieving a fidelity of 1 − 5.9 × 10−3, and c four rings (Nr = 4), achieving a fidelity of 1 − 3.8 × 10−6. d One minus the maximum fidelities achieved by the inverse-design algorithm as a function of Nr and Nf. A value closer to zero indicates a better performance. Modulation parameters for c are provided in Supplementary Note 6.
In Fig. 4, we considered only the accuracy of the amplitudes achieved by our inverse-design approach. We now show that our architecture can also capture the phase of an arbitrary unitary transformation with a high fidelity. To demonstrate this, we consider a normalized 5 × 5 Vandermonde matrix, which is used to implement the discrete Fourier transform. This unitary transformation, defined by


Implementing elementwise phases of a matrix.
a Element-wise phase as a fraction of π of the 5 × 5 Vandermonde matrix implementing the discrete Fourier transform. Element-wise phase achieved by the inverse-design algorithm for b Nr = 1 and Nf = 4, with a fidelity of 0.8 and global phase of 0.099π and c Nr = 4 and Nf = 4, with a fidelity of 1 − 7.25 × 10−7 and global phase 0.596π. d One minus the maximum fidelities achieved by the inverse-design algorithm as a function of Nr and Nf. A value closer to zero indicates a better performance. Modulation parameters for c are provided in Supplementary Note 6.
While unitary transformations are usually required for quantum information processing, matrices used in classical signal processing and in neural networks are in general non-unitary. The architecture presented thus far can also be used to implement non-unitary matrices with singular values less than or equal to one using one of two techniques. First, such non-unitary matrices can provably be embedded in larger unitary matrices44 using their singular value decomposition. Subsequently, the larger unitaries can be implemented using refractive index modulation as discussed thus far. As an example, we consider the following 3 × 3 non-unitary matrix that was randomly generated subject to the constraint that its largest singular value is equal to one:



Implementing non-unitary transformations with unitary embedding.
The target non-unitary matrix, located in the upper-left 3 × 3 section of the matrix, is first extended to a unitary 5 × 5 target matrix. The element-wise a target amplitude, b achieved amplitude, c target phase, and d achieved phase as a fraction of π are shown. A near ideal implementation was achieved using Nr = 4 and Nf = 4 with a fidelity exceeding 1 − 10−5. Modulation parameters are provided in Supplementary Note 6.
Discussion
We have shown that combining the concepts of synthetic dimensions and inverse design enables the implementation of versatile linear transformations in photonics. A major advantage of using synthetic frequency dimensions for implementing an N × N linear transformation is that only O(N) photonic elements (modulators in our case) need to be electrically controlled. This is in contrast to real-space dimensions using path-encoding, such as MZI meshes or crossbar arrays, where the full O(N2) degrees of freedom need to be electrically controlled. Such control is nontrivial both from a scalability perspective as well as from a practical geometrical perspective of connecting N2 tunable elements (e.g. phase-shifters) to their driving electronics off-chip. The reduction in the number of individually controlled elements from O(N2) to O(N) in our scheme comes from the fact that the driving signal on each of the Nr EOMs can simultaneously address Nf frequency modes in the synthetic dimension.
Future work could leverage synthetic frequency dimensions for complicated quantum information protocols beyond single-qudit unitary transformations, such as realizing probabilistic entangling gates for linear optical quantum computing (LOQC)17,36. In particular, spectral LOQC using EOMs and pulse shapers has been shown to be universal for quantum computation17. However, pulse shapers involve demultiplexing the frequency modes into distinct spatial channels using gratings to apply mode-by-mode phase shifts, and limit the number of modes that can be accommodated within the modulator bandwidth due to a finite spectral resolution, thus reducing the benefit of using synthetic frequency dimensions. Such pulse shapers are also lossy and challenging to integrate on chip. Our architecture obviates the pulse shaper by exclusively using EOMs. The advent of ultralow-loss nanophotonic EOMs in lithium niobate45,46, as well as progress in silicon47,48 and aluminum nitride49 makes our architecture fully compatible with on-chip integration, since modulation at frequencies exceeding the ring’s FSR have been demonstrated14,47,50.
For applications in neural networks, the performance of our architecture in terms of the speed, compute density and energy consumption for multiply-and-accumulate (MAC) operations is important51. Assuming we need N modulation tones and N rings with FSR Δf = ΩR/2π to implement a matrix, we can input information encoded in the N frequencies and read out the matrix-vector product, which amounts to N2 MAC operations. Since we need a frequency-resolved measurement, the fastest readout bandwidth is Δf. We assume that the input data can be prepared at speed comparable to or faster than the readout speed. Then, the computational speed in MACs per second is given by


To optimize for computation density, i.e. MACs per second per unit area51, one can use a larger FSR Δf = 1 GHz, in a 1-mm2 footprint, and combine synthetic frequency dimensions within each 100-GHz modulation bandwidth with wavelength-division multiplexed channels separated by 100-GHz-wide stopbands, to parallelize several uncoupled MAC operations across the 5 THz telecommunications band, as has been done for crossbar arrays6,7,9,51. This leads to a compute density of ~10 TMAC s−1 mm−2, which is much better than MZI meshes and comparable with standard silicon microring crossbar arrays51, with the added advantage of only O(N) electronically controlled elements. We anticipate that future progress in modulation speed and power using high-confinement integrated photonic platforms will push these current estimates further, leading to experimental implementations of MAC operations using the architecture proposed here with improvements in complexity, speed, power and footprint.
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-021-22670-7.
Acknowledgements
This work is supported by the U.S. Air Force Office of Scientific Research (FA9550-17-1-0002, FA9550-18-1-0379). S.B. acknowledges the support of a Stanford Graduate Fellowship.
Author contributions
S.B., M.M., and I.A.D.W. conceived the project. S.B., A.D., and M.M. performed the research. S.F. supervised the research. All authors analyzed the results and contributed to discussions. S.B., A.D. and S.F. wrote the manuscript.
Data availability
The data related to this study is available in the manuscript and the Supplementary Materials. Additional data is available from the authors upon reasonable request. Correspondence and requests for materials should be addressed to S.F.
Competing interests
The authors declare no competing interests.
References
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
Arbitrary linear transformations for photons in the frequency synthetic dimension
