Recent progress in nonlinear optical materials and microresonators has brought quantum computing with bulk optical nonlinearities into the realm of possibility. This platform is of great interest, not only because photonics is an obvious choice for quantum networks, but also as a promising route to quantum information processing at room temperature. We propose an approach for reprogrammable room-temperature photonic quantum logic that significantly simplifies the realization of various quantum circuits, and in particular, of error correction. The key element is the programmable photonic multi-mode resonator that implements reprogrammable bosonic quantum logic gates, while using only the bulk χ(2) nonlinear susceptibility. We theoretically demonstrate that just two of these elements suffice for a complete, compact error-correction circuit on a bosonic code, without the need for measurement or feed-forward control. Encoding and logical operations on the code are also easily achieved with these reprogrammable quantum photonic processors. An extrapolation of current progress in nonlinear optical materials and photonic circuits indicates that such circuitry should be achievable within the next decade.
Photonic quantum computation via bulk optical nonlinearities presents challenges, due to the weakness of nonlinearity and the difficulties in doing without feed-forward control. Here, the authors propose an all-unitary approach that is based on a triply-resonant cavity with a time-dependent drive.
Any attempt to build coherent quantum hardware is met with the relentless deleterious influence of the environment. To combat it, all of today’s nascent quantum computers must be cooled to cryogenic temperatures. Superconducting quantum circuits require dilution refrigerators to eliminate thermal noise1,2, and ion trap processors are cooled to <10 K to reduce collisions with stray gas molecules3. This need for cooling poses a problem for many potential applications of quantum information processing; it greatly reduces the prospects for portable devices, and significantly impacts the cost and practicality of large-scale deployment as repeaters and routers for communication networks. Even optical circuits that employ single-site defects (e.g., color centers or rare-earth impurities) require cryogenic temperatures to reduce thermal line broadening4–6. So too do linear optics schemes that employ detectors as their sole nonlinear element (in this case to avoid the overhead incurred by inefficient detection)7,8.
At present, there are only a few platforms that appear to have the potential for quantum processing at both room temperature and pressure9–12. We explore photonic circuits that employ bulk optical nonlinearities as their nonlinear element is a particularly promising one. Bulk nonlinear elements not only do not suffer from thermal excitation, but due to their size they are less affected by thermal broadening. Until recently, the possibility of realizing quantum devices with bulk nonlinearities seemed remote, due both to the weakness of these nonlinearities and the problem of wave-packet distortion13–18. Substantial progress in the effective strength of the material nonlinearities, the introduction of ultra-confining cavities19–21, and a relatively simple solution to wave-packet distortions22–24 have changed that outlook.
Achieving the physical technology to implement nonlinear photonic quantum circuits is not the only challenge to realizing room-temperature quantum logic. For practicality, one must implement this logic using the strongest available nonlinearity, the leading-order χ(2) nonlinear susceptibility, and for efficient room-temperature operation the logic and error correction circuits should avoid measurements or feed-forward control. Two basic approaches to information processing with photons are possible. The first is the use of single- or dual-rail encoding in which each mode contains no more than one photon25. While this has the advantage that all circuit constructions from the well-developed qubit model can be employed, this leads to complex circuits even for correcting the loss of a single photon. The smallest code for this purpose uses five modes (ten for dual-rail encoding)26,27. While there is little work on minimal circuits for correcting the five-qubit code, from circuits for the seven-qubit Steane code, we estimate that it requires a least nine additional modes and >30 CNOT gates. The alternative is to use bosonic codes that employ multiple photons per mode, but in this case it is far from obvious what gates and circuits are required to implement the error correction, let alone how to realize these gates with a χ(2) interaction. While explicit error correction procedures for bosonic codes have been elucidated28–32, they all involve non-demolition or photon-number-resolving measurements. It is not yet known how to construct the unitary multiphoton operations required to replace such measurement using only a χ(2) nonlinearity, or the complexity of doing so. The only unitary circuit that has been explicitly constructed to date to correct a bosonic code is in the form of a 40-layer neural network using an idealized χ(3) medium33.
Here, we propose an approach for implementing all-unitary, and thus room-temperature, quantum logic on multimode multiphoton states using only a fixed χ(2) nonlinearity. This paradigm, which employs as its basic module a single triply-resonant cavity with a time-dependent drive, significantly reduces the complexity of the physical circuits required to implement multiphoton quantum logic in general, and error correction in particular. The joint operation performed on the three modes by the module is controlled by the time-dependent drive. In this way, the module is able to perform a wide range of three-mode multiphoton gates. We demonstrate the power of this approach by explicitly constructing a measurement-free error-correcting circuit for a two-mode bosonic code. This circuit requires just two of our three-mode modules, along with some controllable linear elements. Our compact unitary circuits do not employ any measurements or feed-forward control, which makes them particularly useful for fast quantum routers and repeaters. However, measurements will certainly be required to read out a message or the results of a computation. Fortunately, it is straightforward to use unitary circuits in general, and our processor in particular, to enable high-fidelity measurements at room temperature, even when only inefficient detectors are available. To do so, it is enough to use a unitary circuit to map a single photon to a sufficiently large number of photons that can then be detected. This amplification can be implemented rapidly using a doubling process. First a χ(2) nonlinearity is used to convert one photon in one mode 1 to two photons in a second mode via down-conversion. Second, a frequency conversion process (which employs a χ(2) and a classical pump) is then used to transfer each of the two photons back to the first mode. Repeating this photon-doubling cycle provides exponentially fast amplification. Since measurements are only to be used at the end of a computation, the additional overhead for amplification remains small. Thus, while we do not analyze this measurement method in detail here, it is clear that the lack of efficient photon detectors is not an obstacle to room-temperature quantum information processing.
In the next section, we describe the control Hamiltonian realized by the driven triply-resonant cavity that forms our basic processing module and give examples of important gates that can be implemented by the module. Then we show how a full error correction process can be built from a small number of these multiphoton gates. Lastly, we discuss the materials science and fabrication challenges that must be addressed, in order to realize our loss-correction circuit. By extrapolating the rate of progress in these areas over the past decade, we estimate a timeline for demonstrating this circuit.
We consider three resonant modes of a cavity in a χ(2) medium, with respective mode operators ,






The triply-resonant nonlinear cavity.
The χ(2) medium enables the joint control of three modes. We denote the mode operators respectively by
Note that the second term in
We denote the number of photons in the three modes respectively by na, nb, and nc, and the corresponding operators for the photon number by
In general, to implement quantum gates between the three modes, we will need to generate a set of distinct evolutions, one for each of the
Lastly, the modes of this quantum processor will need to be actively coupled to the waveguides that carry the quantum states to be processed. Otherwise, the process of capturing the content of the waveguides will be too slow due to the necessarily high quality factor of the modes of the processor. To actively couple the cavity modes to the waveguides, we envision using the method given in Heuck et al.23.
To find the control pulse p(t) required to implement a given unitary operation, we employ numerical search methods, an approach often referred to as optimal control39–41. We introduce a parameterization for p(t) as a piecewise-constant signal in which the duration of each interval is variable. This parameterization is essential because the always-on frequency-doubling component of the Hamiltonian necessitates optimizing the length of the pulse. In order to avoid unphysical pulses, we constrain both the duration and amplitude of each interval by the use of sigmoid functions. The full expression for the resulting unitary operation is



Consistently good performance is obtained even with s < 60. This permits the use of standard automatic differentiation tools, without the need for approximations, such as GRAPE40. Our parameterization also has the advantage that it does not allow for pathological pulses. Once we have obtained a piecewise constant control function for a given gate, we use GRAPE and standard regularization techniques to smooth out the pulse, ensuring it has both reasonable bandwidth and power. Throughout the optimization, the robustness of the control to calibration errors is verified. The time scale Δτ is shortened until a threshhold is reached at which the control pulse is no longer robust. The above approach to generating control functions, together with a number of symbolic optimizations, will be presented in detail in a related tutorial39.
Through the use of our implicitly constrained optimal control method, we can perform with high fidelity any gate that keeps 2na + nb + nc constant. If the length of the control pulse is unconstrained, and dissipation is neglected, we can achieve fidelities arbitrary close to unity. For gates reported here, we constrain the duration of the control pulses as much as possible before reaching unitary fidelities <0.999. In later sections considering hardware implementations, we also describe the effects of dissipation. Here, we describe a number of important unitary operations that fulfill that constraint, some of which are also depicted in Fig. 2. More general unitary operations can be performed by reshuffling the modes of the three-mode processors, as seen in later sections. Given the long cavity lifetimes requires for these operations, reshuffling necessitates rapid catch, and release of photons from and into the connected waveguides, e.g., by using active control as done in Heuck et al.23.


The control pulses implementing the three gates that are used to build our error correction circuit.
The top row shows the real and imaginary parts of the control pulses for each gate. The following rows show how the populations of the modes evolve under each gate for a given initial state. The optimizer produces pulses p(t) such that each of the desired transformations leads to constructive interference at the exact same time. Shorter pulses are possible, at the expense of higher power and bandwidth requirements39, up to a point at which the pulse is too short to perform even a single complete oscillation in a subspace defined by an integer value of 2na + nb + nc.
Throughout the following paragraphs, we will use the notation
We begin with the Toffoli Gate, which is a three-qubit non-Clifford gate, distinguished by the fact that together with just the single-qubit Hadamard gate it enables universal quantum circuits42,43. Of particular relevance for our purposes is the fact that it usually requires six two-qubit CNOT gates to implement44,45, while our realization requires only a single application of the three-mode processor. We realize the gate in the Hadamard basis (i.e., our gate is a phase gate with two control qubits) for photonic qubits encoded in a single- or dual-rail configuration. In this basis, the Toffoli unitary maps all joint Fock states to themselves except for the state
We also define a conditional routing gate as one that swaps the state of two modes depending on the state of a third mode. This class of gates is useful for breaking down conditional multi-qudit operations into smaller units. We first route the target mode to a particular waveguide, based on the state of the control mode, and we perform the appropriate single-mode quantum operation in the new physical location of the target mode. Such routing is indispensable, if our goal is to avoid measurements in error-correcting circuits, as measurements usually require hardware at cryogenic temperatures. Typically, a non-demolition measurement is performed by entangling the required information with an ancilla, and performing a demolition measurement on the ancilla. The result, a classical bit, is then fed forward through a classical computer that decides what quantum operation to perform next. We avoid the measurement and classical decisions through coherent quantum feedback46,47, where we simply perform a multimode quantum gate conditioned on the ancilla. The realization for the routing gate suggested below is what we use in our bosonic error-correcting circuit, but other setups are feasible as well. Below





When used in the error-correcting circuits described in later sections, mode
Focusing further on the error-correcting functionality, we need a gate that can correct for photon loss in a codeword. For the code we employ, we require the gate to preserve the states


This operation is necessary for reverting photon loss in the code mode stored in
To complete our error correction circuit, we use a gate that entangles two modes. We require this operation because one of the code words is an entangled state, and the loss of a photon breaks this entanglement. This gate provides the mapping


The above gates are only a few of the many operations that the triply-resonant cavity processor can perform. Among these gates are those important for the processing of unprotected single-photon states, and operations that enable unitary modification and number-resolved measurements on modes with more than one photons, including bosonic codes. Importantly, these operations are performed with a single use of the triply-resonant cavity, while otherwise they would require complete circuits with multiple discrete operations. This leads to drastically simpler overall circuits, at the expense of requiring this more sophisticated and difficult to fabricate triply-resonant optical resonator.
We demonstrate the versatility of our control protocol by constructing an error-correcting circuit around the three-mode processor. The circuit we obtain is not only simple and short, but it also does not require any measurement operations or classical feed-forward control.
We choose the following code, encoding a single qubit in two separate (spatial) bosonic modes, whose logical states are given by


We must first consider the effect of a photon loss on the code. The loss of a photon on the first mode is described by the action of








Our minimal architecture for error correction of bosonic codes, readily expandable to larger tasks.
The circuit depicted can be used to correct a single-photon loss using a two-mode bosonic code. The circuit consists of two cavity processors, which for the most part process each mode of the code separately, and a small network of reprogrammable beam splitters and delay lines. These are used to reroute states between the modes of processors as necessary. Each cavity processor is also capable of performing many multi-qubit gates for single- and dual-rail encoded qubits, as well as preparing and manipulating higher-number Fock states. The network of programmable beam splitters between the processors and the delay lines can also be expanded to a fully connected network, enabling universal rerouting between the three modes of each processor for general-purpose quantum computation. The programmable beam splitters can be implemented as Mach–Zehnder interferometers (as shown in the inset) with two 50/50 beam splitters and a programmable delay (the orange medium in the diagram). Classical electronics will be necessary to ensure the pacing of various operations in this device, but no feedback or decision circuitry is necessary, as the approach is measurement free.


The error-correcting circuit, unrolled in time.
The horizontal axis represents the flow of time, depicting how a pair of triply-resonant cavities is being used. This circuit would be executed on the hardware depicted in Fig. 3. The main drawing is the sequence of operations that we need to perform in parallel in the two triply-resonant cavities, in order to perform the error correction. After placing the code and ancilla modes in the appropriate cavity modes, we accomplish the initial pumping and routing gates. After that, we need to shuffle the ancillary modes by releasing them in the appropriate waveguides. The spatial modes into which the code states are moved depend on the state of the ancillas, thanks to the conditional routing gates. As the ancillas contain information about the presence of photon-loss errors, this lets us perform operations conditioned on the loss of a photon, by performing the two conditional branches in parallel in different physical locations of the circuit. The conditional routing gates then act in reverse, ensuring that all spatial modes end in the same location, without breaking the bijectivity required for any quantum circuit. The various spatial modes employed can be seen in the bottom insets of the figure. Supplementary Figure 1 provides a more detailed rendition. Importantly, as seen in Fig. 3, we do not need 12 triply-resonant cavities as depicted above, rather only 2 cavities with a network of waveguides and programmable beam splitters72 that can route the spatial modes as necessary, so that each cavity can be used repeatedly. The gate pictographs are taken from the Font Awesome icon set.
Encoding a qubit in the two-mode code is particularly simple using the three-mode processor. To do so we have to perform the operation




Single-qubit rotations in the logical space of the two-mode code can be realized by using our three-mode processors, as such rotations do preserve 2na + nb + nc. Moreover, two-qubit logical operations can also be performed. For instance, consider a CPHASE gate, which together with the single-qubit rotations form a universal set. We need to perform the operation






Comparisons with other codes and types of hardware require care because the various systems have significant differences. Nevertheless, we elucidate how our control protocol substantially reduces the depth of a typical circuit and removes the need for entire classes of expensive operations. As discussed in the introduction, error correction procedures have been proposed for bosonic codes, but these require non-demolition or photon-number-resolving measurements, and it has not yet been described how such measurements can be replaced by unitary operations generated by a χ(2) nonlinearity. We can however, compare our circuit to the explicit correction circuit presented in Steinbrecher et al.33.
One way to compare the efficiency of circuits is to examine how long each takes relative to the characteristic unit of time for the given hardware. The circuit we have constructed above requires six gates, for a total of 40 units of time (relative to the χ(2) coupling strength), and four transfers in and out of cavities. The correction circuit employing the quantum optical neural network (QONN) architecture33, which is the closest analog of our hardware, requires 40 layers, resulting also in 40 units of time, but since it uses a χ(3) rather than a χ(2) medium, the nonlinearity is significantly weaker, so that the circuit takes longer in real time. Furthermore, the QONN circuit requires 40 transfers in and out of the nonlinear cavities (one for each layer), ten times more than our architecture.
One can instead implement photonic quantum logic by using only the vacuum and one-photon Fock states to encode qubits (i.e., a single- or dual-rail encoding). The smallest error-correcting code in this setting requires five physical qubits26. The logic required to determine the error syndrome for this code requires 16 CNOT gates and 4 auxiliary qubits27. The auxiliary qubits can either be measured, in which case the error can be determined using a classical computer, or a unitary circuit could process the auxiliary qubits and perform the correction48–52. For each of the 16 different values of the four-bit syndrome, a unitary correction circuit would need to perform a different correction operation. This requires quite a large number of ancillas and CNOT gates, as discussed in the introduction. Our room-temperature design thus represents a dramatic reduction in circuit size and duration. We also emphasize that using all-unitary processes, which is the approach we take here, provides a practical advantage; doing so avoids the need to introduce additional amplification and classical feedback circuitry.
Competing with “active” gate-based approaches to measurement-fee error correction, is the use of continuous autonomous QEC53–57. In that family of protocols, one needs to design an exotic dissipator, usually through reservoir engineering, which provides an irreversible evolution from the error-space back the code space.
We will introduce a less abstract model of our triply-resonant cavity design, in order to better describe the materials science and fabrication challenges it faces. This model also lets us give physical values for the unitless durations we have found above for our control pulses. We will start by describing the physical realization for the





The coupling rate in this nonlinear Hamiltonian imposes the units of time for the control pulses described in the previous section. This characteristic time needs to be compared to the cavity lifetimes, typically expressed through the Q factor as

Considering some recent SHG on-chip experiments (a Q ~ 107 in refs. 61,62 and a
To explore how such future hardware may perform, we compare the lifetime of an encoded (protected) photonic qubit to an unprotected single-rail qubit living in the same hardware. The time scale will be set by the Q factor of the cavities under consideration; however, in order to present physical values for the parameters we will set Q ~ 2 × 108 at λa ~ 750 nm, which is well within the thermorefractive theoretical limit67. In Fig. 5, we compare the performance of our error-correcting protocol to that of an unprotected single-rail qubit, and see that the error-correcting threshold is N ~ 2000, a very demanding value which we are nonetheless optimistic about given the experimental results cited earlier. Typically for non-asymptotic codes, to achieve fault tolerance this lower-level code will have to be concatenated with an asymptotically growing stabilizer code, akin to the surface code or quantum LDPC codes and one of the many techniques for achieving non-Clifford gates (e.g., through magic states) will have to be employed. The versatility of our control protocol provides for a system agnostic to these higher-level architectural decisions.


Logical qubit lifetime at the “break even” regime where it begins to outperform unprotected qubits.
In blue, we see the decay of a single photon, i.e., an unprotected single-rail qubit. In orange, we see the decay of our two-mode code if we do not perform any correction operations—it decays faster as it contains a higher number of photons. The green line represents the decay of the encoded qubit in the presence of periodic correction operations. The infidelity of the correction operations due to photon loss that can happen during the operation is taken into account. The figure represents a lower bound for the performance of our protocol, with beneficial higher order effects being neglected in order to simplify the simulation. The “break even” point is achieved at
Lastly, we need to consider the implementation of the time-dependent control pulses. In the electrical regime, the control pulse can be modulated by standard microwave electronics in CMOS-compatible hardware69. In the optical regime, the control pulse would have to be modulated by wave shaping through expressing the pulse in terms of its Fourier decomposition70. Intermediate regimes are also possible, in which we can modulate a THz electric field, by placing optically actuated Auston switches next to our triply-resonant cavities71. Active control will be necessary for loading and unloading photons from these long-lived cavities, e.g., by following methods proposed in Heuck et al.23.
It is important to note that one can balance the three considerations discussed in this section: the duration, power, and bandwidth of the control pulse. When the values of all these quantities can be expressed in characteristic units close to unity, the optimization problem is well conditioned and easier to solve. Such are the control pulses we have shown (e.g., their amplitudes, bandwidths, and durations are ≲10). However, if our hardware requires short pulses (e.g., due to low Q factor), but permits high power, we can nudge the solution in this direction by reparameterizing the optimization problem39.
It is accepted in the quantum computing community that any prospective purely photonic architecture for quantum information processing would face significant challenges due to the weak photon–photon interactions available even in the best materials and resonators. Nonetheless, the present work, building upon more than a decade of theory developments on cavity-enhanced optical nonlinear interactions, shows that the monumental hardware requirements have already been nearly achieved in disparate experiments. It is an outstanding challenge to incorporate, in a single device, a record-high Q-factor cavity, together with extremely confined mode volumes, and fabrication-enhanced χ(2) materials. However, progress over the last decade—for example, the 108-fold improvement in the efficiencies of SHG—inspires confidence that this herculean task can very well be achieved within the next decade.
Moreover, our work, for the first time, shows that a single elementary photonic device can be reprogrammed on the fly to perform a set of diverse unitary operations, drastically lowering circuit complexity and depth. We have shown its applicability for typical single- and dual-rail encoded qubits, as well as its versatility in processing multiphoton Fock states. We showcased the flexibility of our control paradigm by devising an explicit error-correcting circuit for a bosonic code and the application of multi-qubit logic gates on top of that code. This is the first proposal for photonic logical qubits that includes compact encoding and correcting circuitry. Furthermore, the circuit we have designed does not require any measurement operations or feed-forward classical control, offering significant simplifications compared to a typical small stabilizer code, and opening the door for extremely fast, compact, room-temperature quantum repeaters.
Supplementary information is available for this paper at 10.1038/s41467-020-20417-4.
We thank Christopher Panuski and Ryan Hamerly for many helpful conversations. Harvard Research Computing enabled much of the computational work. The SciPy, Tensorflow, and Julia open source communities provided invaluable research software. SK and MH are grateful for the funding provided by the MITRE Quantum Moonshot Programme. K.J., D.R.E., and M.H. acknowledge support from a CCDC Army Research Laboratory ECI grant.
The design of the control protocol was performed jointly by the authors. S.K. wrote the optimization and analysis software, and performed the simulations. The manuscript was written by S.K. with contributions from the other authors.
The digitized control-pulse examples in this manuscript can be readily reproduced in most optimization toolkits (e.g., Qutip and Tensorflow under Python, or SciML and Flux under Julia). Upon request, the authors can provide these waveforms and example scripts under each of the aforementioned frameworks that produce equivalent waveforms.
As mentioned in the data availability statement, standard optimization toolkits were used for the creation of the control pulses and example scripts, using these frameworks can be provided upon request or found in the documentation of the aforementioned frameworks.
The authors declare no competing interests.
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.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.