Introduction

Waveguiding is ubiquitous in photonics and is one of the main enablers of optical communication, sensing, quantum information, and numerous other applications1. Photonic circuit waveguides are based on changes in the linear permittivity that place fundamental dispersive behavior on their use. These come in a variety of configurations, such as common step-index optical waveguides1, photonic crystal waveguides2, slot waveguides3, slab waveguides1, antiresonant reflecting optical waveguides (ARROW)4, plasmonic waveguides5, bound state in the continuum waveguides6, gain-induced waveguides7, and periodic slit guiding8, to name a few. In addition, nonlinear optics gave rise to confinement phenomena by changing the linear refractive index using the photorefractive effect9. Furthermore, soliton confinement is widely studied in nonlinear media, offering intriguing behaviors governed by nonlinear Schrödinger-type wave equations10. Notably, other interesting mechanisms have led to the guidance at optical frequencies, such as geometric phases11 and astronomical celestial mechanics12.The above demonstrations are either based on changes in the linear permittivity from afar12 or confined light in a free-space configuration11 by a 3D change of the optic axis orientation using a geometric phase lens array. This naturally involves changes in the linear permittivity in the longitudinal direction, even though the transverse average refractive index does not contribute to the guiding mechanism.

Outside photonics, spintronics is the study of controlling the spin degree of freedom in electronic systems, allowing various widely used memory devices13. For example, through the process of the giant magnetoresistance effect14, electronic spin currents with spin up or down are being scattered or transmitted, by controlling the magnetization of a ferromagnetic material. Interestingly, despite their widespread use, e.g., in magnetoresistive random-access memory (MRAM)15, spintronic devices remained mostly 1D in nature16. Recently, electronic directional couplers were used to transfer information imprinted on a single electron between quantum dots, using a concept similar to photonic directional couplers17. Although similar devices have been proposed for spin current manipulation have been proposed18, a device that combines waveguide-like control with spin manipulation is still lacking19.

Here, we experimentally bridge the seemingly unrelated fields of photonic circuits and spintronics. We show that it is possible to build a photonic waveguide without any changes in the linear permittivity (neither real nor imaginary), throughout the entire interaction length, by utilizing the analogy between a sum frequency generation (SFG) process in nonlinear optics and spin ½ particles20 in magnetization textures. In this analogy, the pseudo-spin (PS) states (up or down) are defined as a superposition of the complex amplitudes of signal and idler waves with different relative phases, and the nonlinear coupling defines the magnetization texture (Fig. 1a, b), acting as a spin-dependent potential. This analogy was shown to experimentally emulate Stern-Gerlach experiments20. In addition, it was shown theoretically that a variety of devices can be emulated using varying magnetization textures21,22 (see Supplementary Note 7).

Fig. 1: Pseudo spin guiding in NLPC.
figure 1

a Electron spin waveguide via magnetic domain walls with sharp edges. In the spin picture, an electron (1/2 spinor with arbitrary direction, pink) enters a magnetized material where the material magnetization abruptly changes from spin up (blue arrows) to spin down (purple arrows) perpendicular to the propagation direction (black arrow). This magnetization texture induces a spin-dependent potential that guides spin-up electrons and scatters spin-down electrons. b Guiding PS light beams in NLPCs. In the optical picture, narrow (in the ‘x’ direction) periodically poled NLPC is analogous to the behavior of magnetic domain walls with sharp edges. The combined effect of a wide and powerful pump beam (yellow) with the fabricated ferroelectric domain walls induces the analog magnetization for the frequency superposition states and acts as a PS waveguide core and cladding. This allows the guiding of a frequency superposition state with a specific relative phase between the idler (red) and signal (green) fields while allowing regular diffraction in the ‘y’ direction. c Microscopic top images after selective etching of the fabricated NLPC. Red specifies the designed pattern. Note that due to the KTP anisotropy23,24, the structure is not ideal and shows spikes in the reversed ferroelectricity, but it is still sufficient to confine the light beams (See supplementary materials). d Simulation of the signal and idler propagation inside the NLPC. ‘X’–‘Z’ cross section. An idler input frequency is a superposition of \({\psi }_{+}\) and \({\psi }_{-}\). One of the eigenstates (\({\psi }_{+}\)) is fully guided inside the PS waveguide structure. Next to it is the diffracted, scattered eigenstate (\({\psi }_{-}\)).

In our work, analogs magnetic domain walls having sharp edges (Fig. 1a) are induced by the nonlinear interaction, using custom 2D nonlinear photonic crystals (NLPCs), allowing robust engineering of the nonlinear coupling (Fig. 1b). We show that it is possible to guide and scatter PS light beams inside these nonlinear structures. Furthermore, using two parallel PS waveguides, we demonstrate a PS directional coupler, which allows the tunneling of PS beams from one PS waveguide to another, much like regular directional couplers. We further show that the PS waveguide attributes can be all-optically controlled by varying the relative phases of the participating wavelengths. The on-chip nonlinear guiding and manipulation allow exact spatial control over frequency superposition states of light, which are key in many classical and quantum information protocols, in a robust and compact manner, all-optically controlled by the optical pump beam. Furthermore, the presented results open an experimental testbed for new magnetic domain walls spintronic devices, in 2D or 3D configurations.

Results

Pseudo-spin guiding mechanism

We can describe the process of paraxial SFG process in the undepleted pump approximation using the coupled wave equations, written as an optical pseudo-spin transport equation, while assuming a phase-matched interaction20,21,22,23 (see Supplementary Note 1 for derivation):

$${{\rm{i}}}\frac{{{\rm{d}}}}{{{\rm{dz}}}}{{\boldsymbol{\Psi }}}=\left(\frac{{{{\bf{p}}}}_{{{\rm{T}}}}^{2}}{2{{\rm{k}}}}-{{\boldsymbol{\sigma }}}\cdot {{{\bf{M}}}}_{{{\bf{T}}}}\right){{\boldsymbol{\Psi }}}$$
(1)

where \({{\boldsymbol{\Psi }}}={\left(\sqrt{\frac{{n}_{i}}{{\omega }_{i}}}{A}_{i},\sqrt{\frac{{n}_{s}}{{\omega }_{s}}}{A}_{s}\right)}^{T}/\sqrt{N}\), with \(N={n}_{i}{\left|{A}_{i}\right|}^{2}/{\omega }_{i}+{n}_{s}{\left|{A}_{s}\right|}^{2}/{\omega }_{s}\) such that \({{{\boldsymbol{\Psi }}}}^{{{\boldsymbol{{\dagger} }}}}{{\boldsymbol{\Psi }}}=1\), is the (rotating frame) spinor comprising the idler and signal envelopes, where \({A}_{i}\) and \({A}_{s}\) are the complex amplitudes of the idler and signal, respectively. \(k \sim {k}_{i},{k}_{s}\) is a mean wavenumber (due to the long pump wavelength approximation), \({{\boldsymbol{\sigma }}}=\left({\sigma }_{x},{\sigma }_{y},{\sigma }_{z}\right)\) is the Pauli matrix vector, \({{{\bf{p}}}}_{T}=-i{{{\boldsymbol{\nabla }}}}_{T}\) is the transverse momentum operator in position-space representation, and the analogous transverse magnetization vector \({{{\bf{M}}}}_{{{\bf{T}}}}\) is determined from the nonlinear interaction parameters:

$${{{\bf{M}}}}_{{{\bf{T}}}}=\hat{{{\rm{x}}}}\kappa \cos \left(\phi \right)+\hat{{{\rm{y}}}}{{\rm{\kappa }}}\sin \left(\phi \right)$$
(2)

where \(\kappa \propto |{\chi }^{\left(2\right)}{A}_{p}|\) is the nonlinear coupling (see full expression in Supplementary Note 1), \({\chi }^{\left(2\right)}\) is the second-order susceptibility, and \({A}_{p}\) is the pump amplitude. Under our analogy, the pure idler (\({\omega }_{i}\)) or signal (\({\omega }_{s}\)) frequencies correspond to the PS eigenstates along the \(z\)-direction (optical axis), which we denote \(\bar{|}\psi i\rangle={A}_{i}\otimes |{\omega }_{i}\rangle\) and \(\left|{\psi }_{s}\right\rangle={A}_{s}\otimes \left|{\omega }_{s}\right\rangle\), respectively, including both the frequency and the spatial envelope of the signal and idler. \(\phi\) is the phase difference between the pump phase and the periodically-poled nonlinear crystal initial phase. Here, the PS eigenstates that point along the transverse magnetization vector comprise an equal superposition of \(\left|{\psi }_{i}\right\rangle\) and \(\left|{\psi }_{s}\right\rangle\) with either 0 or \(\pi\) relative phase (assuming \(\phi=0\)):

$$\left|{\psi }_{\pm }\right\rangle=\frac{\left|{\psi }_{i}\right\rangle \pm \left|{\psi }_{s}\right\rangle }{\sqrt{2}}$$
(3)

Equation (1) is then diagonalized using a transformation matrix, where \(|{\psi }_{\pm }\rangle\) now acting as PS up and down. Next, we consider the following spatially varying duty cycle (Fig.1b):

$${d}_{x}=\left\{\begin{array}{cc}0.5,& \left|x\right| < a\\ 0,& {else}\end{array}\right.$$
(4)

where \(2a\) is the width of the designated PS waveguide (acting as an analog photonic core). Namely, a narrow strip of a modulated second-order nonlinearity that allows an efficient process through quasi-phase matching (QPM)24. Assuming an efficient first-order (QPM) interaction, the former duty cycle results in the following transverse magnetization pattern:

$${{{\bf{M}}}}_{{{\bf{0}}}}\left(x\right)=\left\{\begin{array}{cc}+{M}_{0}\hat{{{\bf{x}}}},\, & \left|x\right| < a\\ 0,& {else}\end{array}.\right.$$
(5)

Equation (1) can now be rewritten as two decoupled equations for the PS up and down eigenstates:

$$i\frac{d}{{dz}}\left|{\psi }_{\pm }\right\rangle=\left(\frac{{{{\bf{p}}}}_{T}^{2}}{2k}\mp {{{\bf{M}}}}_{{{\bf{0}}}}\left(x\right)\right)\left|{\psi }_{\pm }\right\rangle$$
(6)

Which is analogous to the Schrodinger Equation of a particle in a spin-dependent potential, governed by \({\kappa=M}_{0}{\propto |\chi }^{\left(2\right)}{A}_{p}|\). To find the eigenvalues of the presented structure, we solve the ‘z’ independent equation and obtain the transcendental equation whose graphical solution appears in the Supplementary Note 1. As can be seen in Fig. 1d, the input idler beam, composed of a superposition of \({|\psi }_{+}\rangle\) and \(\left|{\psi }_{-}\right\rangle\) eigenstates, propagates in two ways. First, the \(|{\psi }_{+}\rangle\) component is fully guided inside the effective PS waveguide, in the ‘X’ axis, since it evolves in a finite well potential. Second, the \(|\psi \_\rangle\) component is scattered and diffracted, adjacent to the PS waveguide structure, since it is scattered from a potential barrier.

The relative ease of the guiding mechanism (i.e., only a narrow strip of periodic modulation) enables us to envision and design components similar to conventional photonic circuits1, but for frequency superposition light beams. Here, we designed a directional coupler, made from two adjacent PS waveguides. This constitutes two spin-dependent potential wells where the PS can tunnel through the barrier, similar to other systems that can be modeled as a double potential well25.

We note that while our theoretical model captures the confinement, coupling and scattering of the PS waveguide, its accuracy depends on the long pump wavelength approximation made in deriving Eq. 6. Therefore, in the presented experiment, while guiding and tunneling are observed both in simulation and experiment, it does not follow precisely the analytic model of Eq. 1. This means that when the approximation is crude, as in our experimental case, detailed simulations are more accurate for prediction of the light behavior. This difference is further discussed in the Supplementary Note 2.

Single pseudo-spin waveguide

We fabricated a narrow (in the ‘X’ direction, see Fig. 1c) custom PPKTP crystal whose width (‘X’ axis, the guiding axis) and length (‘Z’ axis, the propagation axis) are 14 µm and 25 mm, respectively. The average poling period of the crystal was designed to be 15.2 µm, which phase-matched the SFG process at a temperature of 58°, a temperature bandwidth of 2°, and a wavelength bandwidth of ~1.2 nm in the idler frequency (see supplementary Note 10). A 1550 nm CW idler was focused to a ~30 µm waist at the input facet of the crystal, and a 1064.5 nm 1.3 ns, pulsed pump beam was concentrated to a 450 µm waist, hence serving as a wide pump beam (Fig. 2a). The output facet of the crystal was imaged using a single lens, while filtering the pump and idler wavelengths. We note that the idler part of the eigenstate is hidden inside the filtered idler wavelength CW. The results for the single PS waveguide are shown in Fig. 2. Clearly, the generated eigenstate beam is guided along the ‘X’ axis, and freely diffracts along the ‘Y’ axis. Next to the guided eigenstate is the spatially scattered eigenstate signal beam, which is not guided. This is depicted in Fig. 2b, c for the experiment and simulation, respectively. The radius of the guided eigenstate signal along the ‘X’ axis is ~24 µm, nearly five times narrower than the signal output width of a regular, 25 mm, PPKTP crystal, which is measured to be around 113 µm, as shown in Fig. 2d. The observed guiding in the ‘X’ axis is the confinement of the PS \(|{\psi }_{+}\rangle\) beam inside the spin-dependent potential, and the scattered beam is the scattered PS \(|{\psi }_{-}\rangle\), much like charged electrons scatter from a Coulomb potential barrier. Interestingly, for an input pump power of 34 MW/cm2, the insertion loss is estimated to be ~1 db, which is comparable to regular nonlinear waveguides, and is attributed to low roughness backscattering. In addition, the mode overlap in the ‘X’ axis is ~97.5% (see Supplementery Note 10 for more metrics).

Fig. 2: Experimental results of the guiding and scattering of |ψ± >.
figure 2

a An Nd:YAG 1064.5 nm pulsed laser (pump) is focused to a waist of ~450 µm inside the PS waveguide, hence can be assumed as a plane wave, with a peak power of 14 MW/cm2. Increasing the pump power resulted in a slightly increased separation (Supplementary Materials). Through a dichroic mirror (DM), the 1550 nm continuous wave (CW) laser is focused to ~30 μm at the PS waveguide input facet. The PS waveguide is mounted on an oven with a temperature controller (58°). The pump and signal beams are filtered, and the output facet is imaged using a lens. The signal is recorded using a CCD camera. Experimental b and simulated c near field images of the signal field at the output facet, showing the guided eigenstate \(\left|{\psi }_{+}\right\rangle\) in the middle, fully guided along the ‘x’ axis and freely propagating along the ‘y’ axis, as well as the scattered, unguided eigenstate \(\left|{\psi }_{-}\right\rangle\). The dashed white circle represents the calculated beam size in the case of a homogeneous PPKTP crystal, without guiding. The dashed white lines mark the region along ‘X’ of the PS waveguide. d Summation (along the ‘Y’ axis) of the output near field. Comparison between the PS waveguide (orange) and a 1D PPKTP signal output (blue). The waist of the guided mode is ~5 times narrower than the homogeneous PPKTP signal output waist.

Next, we show that it is possible to excite mainly the guided eigenstate, therefore verifying the two-color nature of the waveguide, by inserting a frequency superposition state as input to the PS waveguide. To do so, we used an adiabatic frequency converter (AFC)20,26 to coherently generate an approximate superposition of the two in-phase idler-signal frequencies \(|{\psi }_{+}\rangle\). The AFC was placed before the focusing spot of the idler beam, such that both the idler and signal are roughly focused at the waveguide input facet (Fig. 3a). The pump peak power is 34 MW/cm2. Figure 3b shows the signal near field, similar to Fig. 2. As can be seen, the amount of guided peak power in Fig. 3b is significantly larger compared to the scattered peak power. The waist along the ‘X’ axis is ~12 µm, compared to the 58 µm along the freely propagating ‘Y’ axis. Therefore \(|{\psi }_{+}\rangle\) is guided through the device and corresponds to ~39% of the generated signal power. Importantly, this is not always the case; Different combinations of \(|{\psi }_{i}\rangle\) and \(|{\psi }_{s}\rangle\) will generate a similar pattern to Fig. 2a, a guided and non-guided mode. To control the relative phase, we used the natural, slightly wedged structure of the AFC polished output facet. The AFC exhibits a phase difference in the poling structure across the ‘X’ direction because the polished edge of the crystal is not parallel to the ferroelectric domain walls27,28. Therefore, the three waves accumulate slightly different phases at the edges of the crystal. This phase difference corresponds to a phase shift between the generated signal and the idler due to the material dispersion. Therefore, when the signal is generated in different locations along the ‘X’ axis across the AFC (Fig. 3a), it will gain a different relative phase with respect to the signal. Specifically, we used two locations where the measured length difference between them is ~4 µm (1 μm at the beginning of the adiabatic crystal and 3 μm at the end) (see methods). To experimentally utilize this asymmetry, we displaced the location of the waveguide crystal transversely and moved the displacement stage of the oven to the new location. Therefore, the light beams enter the PS guiding crystal in the same place, while accumulating different phases. As can be seen in Fig. 3c, when the three waves (pump, idler, and signal) accumulate different phases, a different power distribution is present, where now, the guided power is ~21% (instead of 39% when the input was \(|{\psi }_{+}\rangle\)). The experimental comparison between the two cases can be seen in Fig. 3d. To verify this behavior, the experiment was simulated using two cascaded processes, an adiabatic converter (see Methods), and a PS waveguide, with a pump and idler as input. Figure 3e shows a similar scenario to Fig. 3b, with the simulated guided signal power corresponding to 38% of the overall signal power. We note that this simulation was simulated in the non-ideal scenario due to differences in the Sellmeier equations, non-ideal focusing, and length difference measurement (see Supplementary Note 3). Taking these into account, we find good agreement between simulation and experiment. Figure 3f shows the same simulation but with a path length difference of ~3 µm at the end of the adiabatic converter (due to experimental non-idealities, see Supplementary Note 3). Here, the guided power corresponds to 20% of the overall signal power, which is similar to the experiment. Figure 3g shows a cross-section comparison after summation along the ‘Y’ axis. As expected, the scattered power is substantially higher, verifying the importance of the relative phase between the participating wavelengths.

Fig. 3: All-optical control over PS waveguide.
figure 3

a Schematic illustration of creating a PS waveguide eigenstate. The wide pump (red) and idler (green) beams are focused on the crystal with the PS waveguide structure through the wedged adiabatic converter, generating the |\({\psi }_{+}\)〉 eigenstate. The eigenstate |\({\psi }_{+}\) 〉 is then guided through the PS waveguide structure, resulting in a decreased scattered |\({\psi }_{-}\)〉. b Near field image of the signal field, where most of the power is guided through the structure. c Same as b but with a path difference of 3 μm in the adiabatic converter stage. d Corresponding experimental cross-section. Blue curve corresponds to the results presented in (b), while the orange curve corresponds to the results presented in (c). e–g Simulation results of the experimental results in panels (bd).

Pseudo-spin directional coupler

The concept of PS guiding is not limited to single waveguides. To demonstrate it, we fabricated a PS directional coupler, made from two adjacent and parallel PS waveguides (Fig. 4a), and then used the same idler input as described before, with a peak power of 34 MW/cm2. When entering from Port 1, \({|\psi }_{+}\rangle\) tunnels to Port 2 (Fig. 4c) and \(\left|{\psi }_{-}\right\rangle\) is scattered. Then, the same crystal was displaced ~30 µm, such that now the input idler beam enters from port 2. As expected, the signal tunneled to port 1 (Fig. 4d). At the edges of Fig. 4c, d, the signal of the scattered \({\psi }_{-}\) can be seen. Figure 4e, f shows the corresponding simulation results of the output signal field. The coupling efficiency of the PS coupler is extracted for Fig. 4 and stands at 62% (see Supplementary Note 10). To gain more insights into the tunneling mechanism, we simulated the propagation inside the structure (Fig. 4b). Similarly to the single waveguide design, the beam experiences scattering and confinement due to the input beam being a superposition of the two eigenstates (\(|{\psi }_{i}\rangle \propto |{\psi }_{+}\rangle+|{\psi }_{-}\rangle\)). Interestingly, as can be seen in Fig. 4b, after the initial scattering and tunneling, the eigenstate (that includes two wavelengths—the signal and the idler) tunnels back again to the first PS waveguide, much like light tunnels in conventional directional couplers (or particles tunnel in two finite potential wells, see Supplementary Note 7).

Fig. 4: PS directional coupler.
figure 4

a Microscope top image of the fabricated PS directional coupler after selective etching. The purple color depicts the designed pattern. b Simulated cross-section of the propagation inside the NLPC for an idler input, showing the propagation of both signal and idler. After the scattered eigenstate is scattered from the lower PS waveguide, the guided eigenstate tunnels to the upper waveguide. Then, it tunnels back to the first lower waveguide. The white dashed line marks the experimentally measured crystal length. c Near field image of signal field at the output facet showing the guided eigenstate, |\({\psi }_{+}\)〉 port 2, after tunneling from port 1. Similar to the single waveguide case, the eigenstate is guided along the ‘X’ axis and freely propagates along the ‘Y’ axis. The light at the edges corresponds to the scattered eigenstate |\({\psi }_{-}\) 〉. d Same as panel c, but now the input beams enter from port 2, obtaining tunneling from port 2 to port 1. e, f Simulation results for (c, d). Similarly, to the experiment, due to tunneling of the guided PS between the two ports, a small portion of the signal power can be seen at the input port (either port 1 in panel e or port 2 in panel (f)).

Discussion

Our observations constitute a new paradigm for controlling frequency superposition light beams. The concept we demonstrate can now be readily extended to study a wider variety of effects in guided-wave structures, not only for a single guided wave but also for a vectorial superposition of two waves having well-defined relative phases inside quadratic nonlinearities: from photonic quantum walks29 to splitters and interferometers30. In addition, we note that future works might explore PS light circuits with multiple31,32 frequencies through the use of quasi-periodic structures. This may offer complete control over the frequency domain in a compact and robust manner. Importantly, we worked in a regime where the wavelengths of the signal and idler are almost 1000 nm apart and showed experimentally that both wavelengths are critical to the waveguide functioning. We can now envision spatially precise separation for frequency superposition states, where light can be coupled directly from the output facet of the nonlinear crystal, similarly to other waveguiding systems33.

The observed light guiding is fundamentally different from other waveguiding mechanisms since it is realized in a homogeneous refractive index platform and does not depend on any linear permittivity change. This means that the only guided wavelengths are the ones that satisfy phase matching, with the pump beam controlling the interaction. Therefore, several frequency superposition states can be spatially manipulated near each other with minimal interference. For example, cascaded designs working with different frequencies can be utilized for the generation and spatial manipulation of single photons. Moreover, the presented results are different from other confinement mechanisms using nonlinear optics, usually described by a nonlinear Schrodinger equation (NLSE)10. This difference is essential since Soliton confinement governed by NLSE makes it difficult to design conventional integrated components because the interaction is affected by the confined light, and usually requires a substantial amount of power. Since we work in the undepleted pump regime, the system can guide light down to the single photon power level34, while keeping the guiding mechanism’s linear nature, crucial for building various photonic components. This may open a unique test-bed for entangled frequency domain experiments, inspired by works on quantum optics in photonic lattices32,35 (see Supplementary Note 9). It is worth mentioning that our work is also different from other nonlinear waveguide implementations, such as poled thin film ridge waveguides or Ti-diffused waveguides in LiNbO3. These conventional structures rely on a linear waveguide geometry combined with a periodic poling pattern to enable efficient nonlinear interactions. In contrast, our method eliminates the need for a pre-defined linear waveguide altogether. Instead, we operate in a homogeneous linear refractive index material, where only a narrow periodically poled region is required for fabrication. Namely, the modulated nonlinearity and pump beam induce the guiding mechanism for a vectorial superposition of the signal and idler waves. Interestingly, recent works show how regular photonic circuits can be combined with Rb-diffused poled waveguides for miniaturized heralding schemes. We believe that similar concepts can be introduced for PS waveguides, i.e., a PS waveguide in conjunction with regular photonic waveguides inside bulk KTP36.

Through our demonstration, it is now possible to experimentally realize complicated magnetization textures that are otherwise extremely hard to realize in solid-state experiments37. Moreover, controlled spin ½ dynamics are key in various other fundamental systems. One important example is topological systems38, in which a spin ½ quantum walker shows topological behavior. Our system is a prime candidate for experimentally studying these effects, utilizing the inherent two-level system dynamics along with waveguiding coupling and relatively simple fabrication processes. Lastly, the same concepts can be generalized to 3D nonlinear photonic structures39, allowing for complete spin transport control in all dimensions (see Supplementary Note 8), or other spin ½ optical analogies40, enabling precise control of various degrees of freedom.

Methods

Numerical simulations

Simulations were performed using a split-step Fourier method41, where the propagation of fields is calculated under the paraxial approximation. The idler and pump fields were initialized as Gaussian beams at the start of the crystal, and their propagation through the crystal was then calculated. The simulated wavelengths and intensities were chosen to match those used in the experiment (see main text). The nonlinear medium was a narrow periodically poled KTP crystal (crystal’s nonlinearity: d3316.9 pm/V), 20 or 25 mm in length. For the simulations in Fig. 3, we simulated consecutively an adiabatic frequency converter and the PS waveguide, with the pump and idler as input.

Wedged crystal

To obtain a relative phase between the participating wavelengths, a wedged crystal was used before the PS waveguide structure. Figure 5 is a microscopic image depicting the difference from the end facet of AFC, resulting in a 3 μm difference. An additional 1 μm difference is at the beginning of the AFC (not shown). We note that phase control can also be implemented in a more integrated manner, by using the electro-optics42 effect or thermo-optic effect43.

Fig. 5: Length difference in a wedge crystal.
figure 5

A microscope picture depicting the distance difference between the poling structure at the crystal end facet, along the AFC ‘X’ axis.

Adiabatic frequency conversion

To generate a specific pseudo-spin state, we used the process called adiabatic frequency conversion (AFC). Adiabatic sum-frequency generation (ASFG) is a method to achieve robust and efficient frequency conversion26. It relies on the analogy between three-wave mixing processes and the interaction of a quantum two-level system with an external driving field. The increase in efficiency and bandwidth is attributed to the use of an adiabatically chirped quasi-phase-matched (QPM) nonlinear photonic crystal, where the poling periodicity for QPM is slowly varied along the propagation direction. Here, we used this method to increase the conversion robustness of the idler wave into the signal wave, working in the same oven as the PS waveguide. This allowed us to generate the coherent frequency-locked superposition state \(|{\psi }_{+}\rangle\), which is an eigenstate of our system. We used a 1 cm PPKTP crystal with a QPM period that was linearly chirped from Λ = 15.74 µm to Λ = 14.80 µm. To show exactly how the frequencies are generated, we provide the simulation results of the signal and idler propagation during the two cascaded processes described in Fig. 3 in the Supplementary Materials.