## Abstract

A photonic transistor that can switch or amplify an optical signal with a single gate photon requires strong non-linear interaction at the single-photon level. Circuit quantum electrodynamics provides great flexibility to generate such an interaction, and thus could serve as an effective platform to realize a high-performance single-photon transistor. Here we demonstrate such a photonic transistor in the microwave regime. Our device consists of two microwave cavities dispersively coupled to a superconducting qubit. A single gate photon imprints a phase shift on the qubit state through one cavity, and further shifts the resonance frequency of the other cavity. In this way, we realize a gain of the transistor up to 53.4 dB, with an extinction ratio better than 20 dB. Our device outperforms previous devices in the optical regime by several orders in terms of optical gain, which indicates a great potential for application in the field of microwave quantum photonics and quantum information processing.

## Introduction

The fact that photons hardly interact with each other makes them excellent carriers of information for long-distance quantum communication^{1}, but on the other hand, challenges the realization of all-optical quantum operation which is necessary for photonic quantum networks and all-optical quantum devices^{2}. An effective photon–photon interaction can be generated through the strong light-matter interaction by introducing nonlinear optical medium, such as atomic ensembles^{3,4} and cavity quantum electrodynamic (QED) systems involving single atoms^{5,6,7,8}, single artificial atoms^{9,10,11,12} or exciton-polaritons^{13}. Photon–photon interaction at the single-photon level enables the realization of a single-photon transistor (SPT), in analogy to an electronic transistor, that can switch or amplify "source” photons controlled by a single "gate” photon^{14}. SPT lies at the heart of many important applications including optical computing^{15} and hardware-efficient quantum random access memory (qRAM)^{16,17}. In the optical regime, SPT has been realized in some pioneering works^{3,4,5,10}, but with limited performance with the highest gain of less than 100, which is mainly due to the imperfect quantum control or insufficient coupling strength between light and matter.

As an alternative, circuit QED architectures based on the superconducting quantum circuit have been proposed as an appealing platform to realize a SPT in the microwave regime^{18,19,20,21}. Quantum operation between a propagating single microwave photon and superconducting qubit has been well-established^{22,23,24,25}, benefiting from the strong and well-controlled interaction between them. As a consequence, high-efficient photon–photon interaction with great flexibility is attainable at the single-photon level^{26}. Moreover, the conveniently engineered superconducting qubit and high-quality superconducting microwave cavities endow higher-order nonlinear effects^{27,28}, which are currently unreachable in cavity QED systems, potentially facilitating the realization of a SPT with extraordinary performance.

In this work, we have realized a SPT in the microwave regime with unprecedented gain up to 53.4 dB, together with an extinction ratio above 20 dB. Our device relies on a controlled-phase gate between a propagating single microwave photon and a superconducting qubit, which triggers the succeeding switch of the input signal. The gate photon can be well-preserved after the switch operation, which enables us to confirm the single-photon nature of the switching process. Our work demonstrates a great possibility of photonic quantum information processing in the microwave regime^{24,29}, such as coherent state manipulation^{30} and the realization of hardware-efficient qRAM^{16,17}.

## Results

### The single-photon transistor

An illustration of our single-photon transistor can be found in Fig. 1a, b. An incoming gate photon pulse controls the transmittance of the signal photons fed to the transistor. If the gate pulse contains no photons, the signal photons could pass through the transistor. If the gate pulse contains one photon, the signal photons could barely travel across the transistor. The gate photon survives after the switch operation. In the experiment, we use two microwave cavities dispersively coupled with a superconducting transmon qubit to separately detect the gate photons (cavity I) and switch the signal photons (cavity II), as shown in Fig. 1c. Cavity I is designed as a single-side cavity to minimize photon loss during the detection of gate photons, while cavity II is a double-side one to maximize the transmittance of signal photons. The out-coupling rate of cavity I is fine-tuned to meet *κ*_{I} = 2*π* × 1.81 MHz \(\approx \, 2|{\chi }_{{{{{{{{\rm{I}}}}}}}}}^{{{{{{{{\rm{ge}}}}}}}}} |=2\pi \times 1.73\) MHz, where *κ*_{I} is the linewidth of cavity I, and \({\chi }_{{{{{{{{\rm{I}}}}}}}}}^{{{{{{{{\rm{ge}}}}}}}}}\) is the qubit excited state \(\left|{{{{{{{\rm{e}}}}}}}}\right\rangle\) induced dispersive shift for cavity I. In this way the reflected single gate photon would have a *π* phase shift conditioned on the excited state of the qubit^{22,31}, as indicated in Fig. 1f. Such a controlled-phase gate between the gate photon and the qubit forms the basis for gate photon detection, which has been successfully demonstrated in previous works^{22,23}.

To operate the single-photon transistor, as shown in Fig. 1d, the qubit is initially prepared in \((\left|{{{{{{{\rm{g}}}}}}}}\right\rangle+\left|{{{{{{{\rm{e}}}}}}}}\right\rangle )/\sqrt{2}\). If a gate photon is sent to cavity I, the qubit-photon state would be \((\left|1\right\rangle \left|{{{{{{{\rm{g}}}}}}}}\right\rangle -\left|1\right\rangle \left|{{{{{{{\rm{e}}}}}}}}\right\rangle )/\sqrt{2}\), which can be also identified as a conditional qubit phase flip in the presence of the single gate photon^{22,23,31,32,33}. A following *π*/2 gate would drive the qubit to \(|{{{{{{{\rm{g}}}}}}}}\rangle\), as illustrated in Fig. 1b. On the other hand, as shown in Fig. 1a, if there is no gate photon sent to cavity I, the qubit state would be in \(\left|{{{{{{{\rm{e}}}}}}}}\right\rangle\) after the pulse sequence. Cavity II is used to switch the signal photons according to the qubit state. The out-coupling rates for the input and the output ports of this cavity are tuned to \({\kappa }_{{{{{{{{\rm{II}}}}}}}}}^{{{{{{{{\rm{in}}}}}}}}}={\kappa }_{{{{{{{{\rm{II}}}}}}}}}^{{{{{{{{\rm{out}}}}}}}}}=2\pi \times 0.13\) MHz to achieve a maximized transmittance at the resonance frequency. We further take \(2|{\chi }_{{{{{{{{\rm{II}}}}}}}}}^{{{{{{{{\rm{ge}}}}}}}}} |=2\pi \times 1.894\) MHz ≫ *κ*_{II} = 2*π* × 0.3 MHz to guarantee that the qubit state depended cavity resonance shift is much larger than the linewidth of cavity II, as indicated in Fig. 1e. Consequently, the signal photons can be effectively switched off (on) on the transmission path once the resonance frequency of cavity II is shifted by the gate photon determined qubit state. We note that it is also possible to operate the transistor within the qubit \(\{|{{{{{{{\rm{g}}}}}}}} \rangle ,|{{{{{{{\rm{f}}}}}}}} \rangle \}\) subspace by applying a *π*_{ef} pulse after second *π*_{ge}/2 pulse. In this case one would have a larger dispersive shift \(2|{\chi }_{{{{{{{{\rm{II}}}}}}}}}^{{{{{{{{\rm{gf}}}}}}}}} |=2\pi \times 3.518\) MHz but could suffer from stronger decay/dephasing of the \(|{{{{{{{\rm{f}}}}}}}}\rangle\) state as a compromise.

### The switch effect

We first characterize the switch effect of the single-photon transistor. A 10 *μ*s long square pulse with an average photon number *n*_{s}=37.2 is used as the input signal, whose frequency is aligned to the resonance frequency of cavity II when the qubit is in \(\left|{{{{{{{\rm{e}}}}}}}}\right\rangle\). From Fig. 1a, the qubit is expected in \(\left|{{{{{{{\rm{e}}}}}}}}\right\rangle\) if there is no gate photon, and thus the transistor is normally open. In the experiment, a Gaussian pulse in the weak coherent state, with a pulse length of 960 ns and an average photon number *n*_{g} = 0.18, is used to simulate a single-photon source for gate control. The transmission of the input signal with and without the gate photons is repeatedly measured to determine the "on” or "off” state of the transistor in each trial (see Methods for details), as illustrated with the bar plots in Fig. 2a. Compared with the results without gating photons, one could see a clear decrease in the count of "on” events, while a correspondingly increased count of the "off” events when the transistor is gated, which demonstrates the success of switch operation. The reason that the transistor is not largely switched off is mainly that a large portion of the weak coherent pulse is still in the vacuum state, while for this demonstration we do not have a single microwave photon detector for post-selection as in previous optical experiments^{10}.

### Single-photon switch

To confirm the single-photon switching character, we evaluate the quantum state of the reflected gate photons conditioned on either the "on” or "off” state of the transistor, which can be determined in a single shot thanks to the strong signal power, with quantum state tomography^{34}. For a normally open transistor, ideally one would expect the gate photon reflection in the vacuum state when the transistor is "on”, or in the single-photon state when the transistor is switched off. As shown in the inset of Fig. 2a, in the experiment we measure a close-to-vacuum Wigner function for the reflected gate photons conditioned on the strong transmission, with an average gate photon number of about 0.03. On the other hand, conditioned on the weak transmission we obtain a Fock-state-like Wigner function with an average photon number of about 0.72. Those results demonstrate that the input signal is indeed switched by a single gate photon.

The reasons for the deviation of the measured conditional reflection of gate photons from the ideal vacuum state or Fock state are mainly twofold. Firstly the gate photon-induced qubit flip process is not perfect. In the case of Fig. 2a, we measure a wrong qubit flip probability of 0.2 for a single gate photon, and 0.04 for zero gate photon. At the same time, the qubit may suffer from energy relaxation from the excited state or spurious qubit state transition during the input signal passing through the transistor, which leads to the non-zero probability of the "off” events when there is no gate photon, and thus introduces additional errors to the switching process. More detailed discussions can be found in Supplementary Note 5.

### Assume an ideal single-photon source

To measure the switching probability of the transistor in the presence of a single gate photon, we separately calibrate the operation of the transistor in two stages, namely the qubit flip process and the following signal switch process. To calibrate the qubit flip probability by an incoming single gate photon, we send weak coherent state photons with varied average photon numbers to cavity I and measure the qubit flip rate. Ideally, the measured qubit flip rates shall follow the single-photon occupations of the weak coherent states, and thus from the experiment, we could determine the single-photon-induced qubit flip probability *η* =0.80, which is mainly limited by the internal loss of cavity I (Supplementary Note 6). To determine the qubit-state-flip-induced signal switch effect, we set the qubit to \(\left|{{{{{{{\rm{e}}}}}}}}\right\rangle\) and perform repeated single-shot measurements of the transmitted photon number. Qubit-state relaxation to \(\left|{{{{{{{\rm{g}}}}}}}}\right\rangle\) would result in a wrong switch operation, and thus the measured transmission shows a bimodal distribution, from which we can determine the probability of correct switching induced by the qubit flip process *P*_{s} = 0.925 for an input signal photon number of 37.2. The single-photon switching probability is given by *P*_{sg} = *η* × *P*_{s} = 0.74. Details about the measurement can be found in the Methods section.

### Switch a strong signal

A strong input signal can be effectively switched by our single-photon transistor. Figure 2c shows the statistical working state of the transistor in repeated measurements with an average signal photon number *n*_{s} = 2.62 × 10^{5}, where the transistor is operated in normally open mode by aligning the signal frequency to the bare frequency of cavity II (see Supplementary Note 8 for details). Remarkably, for such a strong input signal one could still see a clear switch effect when the transistor is gated by weak coherent state photons, which agrees well with the theoretical predictions. It should be noted that when there is no gate photon, the wrong-operation events increase compared with the case with a weak input signal shown in Fig. 2a, which can be explained by the input signal-induced qubit flip during the operation of the transistor^{35}.

The single-photon switching character for the strong input signal is again verified through quantum state tomography on the reflected gate photons, as shown in the inset of Fig. 2c. We obtained an average number of reflected gate photons of 0.54 conditioned on the weak transmitted signal, and 0.17 for the strong transmission. Compared with the results shown in Fig. 2a, the single-photon switching character shows a larger deviation from the ideal case, which is due to the stronger mixing of qubit states induced by the intense input signal^{35}.

### A normally closed transistor

It is also possible to operate the transistor in a normally closed mode by controlling the qubit phase. As illustrated in Fig. 1d, we set the phase of the second *π*/2 pulse to *π*, and thus the presence of a single gate photon would set the qubit state in \(\left|{{{{{{{\rm{e}}}}}}}}\right\rangle\) or \(\left|{{{{{{{\rm{f}}}}}}}}\right\rangle\), resulting in a strong transmission of signal photons from cavity II. Figure 2b, d shows the statistical transmission for a weak (*n*_{s} = 37.2) and a strong (*n*_{s} = 2.62 × 10^{5}) input signal pulse, respectively. In contrast to the case for a normally open transistor, the bimodal distribution remains, but with reversed weights for a strong output and a weak output. At the same time, the presence of gate photons introduces a clear reversal in the working status of the transistor. Together with the conditional state tomography on the reflected gate photons, those results confirm that here a single gate photon can effectively switch on the normally closed transistor.

### Gain and extinction ratio

As previously indicated, the measured transmission intensity and switching characters are largely determined by the number distribution of gate photons. To exclude the influence of gate photon source on the performance evaluation of the transistor, we compare the average transmission intensity with and without the gate photons, and extract the gain and extinction ratio based on the measurement results. Details of this derivation can be found in the Methods. The gain of a transistor describes the signal photon number that can be controlled by a single gate photon, which is defined as \(G=10{\log }_{10}(|{n}_{\left|1\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}-{n}_{\left|0\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}|)\) for a normally open transistor, where \({n}_{\left|1\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}\) or \({n}_{\left|0\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}\) represents the average photon number outputted from the transistor gated either by a perfect single-photon source or a vacuum field, respectively. The extinction ratio is defined as \(R=10{\log }_{10}({n}_{\left|1\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}/{n}_{\left|0\right\rangle }^{{{{{{{{\rm{open}}}}}}}}})\), which essentially describes the "on”/"off” contrast of the gated input.

Figure 3 shows the gain *G* and the extinction ratio *R* of our device as a function of the signal photon number, using either \(\{\left|{{{{{{{\rm{g}}}}}}}}\right\rangle,\left|{{{{{{{\rm{e}}}}}}}}\right\rangle \}\) subspace or \(\{\left|{{{{{{{\rm{g}}}}}}}}\right\rangle,\left|{{{{{{{\rm{f}}}}}}}}\right\rangle \}\) subspace. When the signal contains less than 100 photons, the transistor gain is proportional to the input photon number, which can exceed 16.6 dB when the qubit is operated in the \(\{\left|{{{{{{{\rm{g}}}}}}}}\right\rangle,\left|{{{{{{{\rm{e}}}}}}}}\right\rangle \}\) subspace, or 14.1 dB in the \(\{\left|{{{{{{{\rm{g}}}}}}}}\right\rangle,\left|{{{{{{{\rm{f}}}}}}}}\right\rangle \}\) subspace. The extinction ratio *R* keeps above 15 dB when using both of the two qubit subspaces. In this regime, the extinction ratio is mainly determined by the cavity linewidth and dispersive shift. From the transmission spectra shown in Fig. 1e, one would find an upper bound of the extinction ratio as large as 20 dB, which is substantially larger than the results shown in Fig. 3a. This is mainly caused by the non-ideal gating process and qubit decoherence during the operation of the transistor.

When the signal power increases, the gain of the transistor stops linear growth and keeps at around 16 dB. At the same time, the extinction ratio shows a drastic drop to even below 5 dB for some signal powers. This is due to the inherent non-linearity of the cavity mode when it is hybridized with the qubit state. The non-linearity is of minor importance for a weak input signal. When the photon number of the feeding signal exceeds 100, the photon population in the nonlinear cavity would shift its resonant frequency, and thus prohibit the transmission of later incidence photons, which is known as the photon-blockade effect and explains the saturated gain and reduced extinction ratio in the medium range of the input signal power.

As reported in previous works^{36,37,38}, the cavity’s non-linearity can be suppressed by populating the cavity with a large number of photons, which would effectively decouple the qubit and the cavity, and recover the linear response of the cavity to the feeding signal. Prominently, the critical photon number for this transition shows a strong dependence on the qubit state. More details about the transition can be found in Supplementary Note 8. This effect enables our device to reach an unprecedented level of gain. As shown in Fig. 3, when the signal photon number exceeds 4.9 × 10^{5}, the gain of the transistor shows rapid increase to a peak value of 47.6 dB when operating the qubit in \(\{\left|{{{{{{{\rm{g}}}}}}}}\right\rangle,\left|{{{{{{{\rm{e}}}}}}}}\right\rangle \}\) subspace, and 53.4 dB in \(\{\left|{{{{{{{\rm{g}}}}}}}}\right\rangle,\left|{{{{{{{\rm{f}}}}}}}}\right\rangle \}\) subspace. The extinction ratio also increases from below 10 dB to about 20.5 dB peak value in this regime. For a further increased signal strength the cavity transmission shows minor dependence on the qubit state, and thus the presence of gate photons, resulting in a gradually failed switch operation.

## Discussion

In summary, we have demonstrated a single-photon transistor with ultra-high gain in the microwave regime. Our device takes the advantage of the strong nonlinear interaction between a single microwave photon and a superconducting transmon qubit, which facilitates an effective photon-photon interaction at the single-photon level. We have shown that within a large power range the input signal fed to the transistor can be effectively switched by a single gate photon, with an unprecedented gain up to 53.4 dB, together with an extinction ratio better than 20.5 dB. We note that the cavity loss and qubit coherence bottleneck the single-photon switch probability for the current device. A further improvement in those aspects could improve the single-photon-gating efficiency to 0.93. Moreover, benefiting from the non-demolition nature of the reflection-based photon-gating process, the operation of the transistor can be heralded by a single-photon detector if a low-efficient gate photon source is used. Our work paves the way for microwave-photon-based emerging technology for quantum information processing^{16,24,29,30}.

## Methods

### The device

The device is implemented with a 3D circuit quantum electrodynamics architecture^{25,39}. The superconducting transmon qubit is patterned on a 1.2 mm × 15 mm sapphire substrate with standard microfabrication techniques. The Josephson junction of the qubit is fabricated with electron-beam lithography and double-angle evaporation of aluminum. The qubit chip is placed in the waveguide trenches and dispersively coupled to the two 3D aluminum cavities. Detailed parameters of the device can be found in Supplementary Note 1.

### Count "on”/"off” state of the transistor

In the experiment, the "on”/"off” state of the transistor is determined by measuring the transmission intensity of the input signal. For a certain input signal strength, the transmitted photon number in each trial of the repeated measurements is recorded and summarized as a histogram plot as shown in Supplementary Fig. 2. In general, the histogram shows a bimodal distribution, which corresponds to the "on” state and "off” state of the transistor. To classify the state of the transistor in each trial of the measurements, we use the K-means clustering method to determine the threshold of the histogram. It is worth mentioning that the width for each peak of the bimodal distribution is not determined by the performance of the transistor, but is mainly influenced by the detection efficiency of the amplification chain^{34,40,41}. Therefore, we are only interested in the total count number for each transistor’s working state. The extracted "on”/"off” state of the transistor is then summarized as bar plots in Fig. 2. We also calculated the average output photon number for either the "on” state or "off” state of the transistor based on the histogram plot, which is used as the x-axis position of the bar plots.

### Calibrate the single-photon switching probability

As mentioned in the main text, the operation of the single-photon transistor relies on gate-photon-induced qubit flip (cavity I) and the resulting signal switching (cavity II). To determine the single-photon switching probability, we separately measure the success probabilities of the two processes. It is known that in the small-photon-number regime, single-photon occupation in a weak coherent state is linearly related to the average photon number. Therefore we can directly measure the qubit flip probabilities with varied average gate photon numbers, and fit the experimental results to extract the qubit flip probability by a single gate photon *η*, as illustrated in Supplementary Fig. 4. We develop a theoretical model for the single-photon-gating process, indicating that internal loss of cavity I during the photon-gating process is the main error source. A further improvement of the cavity performance and the qubit coherence would improve the gating efficiency to above 93%. A detailed discussion can be found in Supplementary Note 6.

In another experiment, we directly set the qubit to \(\left|{{{{{{{\rm{e}}}}}}}}\right\rangle\) and perform repeated single-shot measurements on the transmitted signal photon number. Normally one could observe a bimodal distribution of the transmitted photon number, as a result of the unavoidable qubit relaxation to \(\left|{{{{{{{\rm{g}}}}}}}}\right\rangle\) when the signal passes through the transistor (see Supplementary Fig. 2 as an example). We can count the "on”/"off” state from the bimodal histogram plot, and thus determine the success probability of the signal switching conditioned on the qubit flip *P*_{s}. The single-photon switching probability is thus given by *P*_{sg} = *η* × *P*_{s}.

### Extract gain and extinction ratio

As discussed in the main text, when using the weak coherent state photons to gate the transistor, the measured switch effect is largely determined by the imperfection of the gate photon source. In order to obtain the intrinsic properties of the transistor, and accordingly extract the gain and extinction ratio of the transistor, we perform a series of controlled experiments to evaluate the switch effect by excluding the influence of the gate source. To be specific, we operate the transistor in either normally open (by setting *θ* = 0) or normally closed (*θ* = *π*) mode. In both case we measure the transmission intensity when the transistor is either gated by the weak coherent state with *n*_{g} = 0.18, or not gated. For the four cases, the measured transmission intensity can be written as

Here, \({n}_{\left|0\right\rangle (\left|\alpha \right\rangle )}^{{{{{{{{\rm{open}}}}}}}}}\) denotes the measured transmission intensity without gate photon (with weak coherent state gate photons) when the transistor is operated as a normally open mode. \({n}_{\left|{{{{{{{\rm{g}}}}}}}}\right\rangle (\left|{{{{{{{\rm{e}}}}}}}}\right\rangle )}\) refers to the transmission intensity when the qubit is in \(\left|{{{{{{{\rm{g}}}}}}}}\right\rangle\) (\(\left|{{{{{{{\rm{e}}}}}}}}\right\rangle\)) before the input signal is sent to the transistor. \({P}_{{{{{{{{\rm{g}}}}}}}}}^{{{{{{{{\rm{open(close)}}}}}}}}}\) denotes the probability of qubit state in \(\left|{{{{{{{\rm{g}}}}}}}}\right\rangle\) when the transistor is working as normally open (normally closed). *β* is the qubit flip probability when the transistor is gated by the weak coherent state photons, which can be directly measured in the experiment (scattered plots in Supplementary Fig. 4). For *n*_{g} = 0.18 used in our experiment, we measure *β* = 0.13. By solving these equations, \({P}_{{{{{{{{\rm{g}}}}}}}}}^{{{{{{{{\rm{open}}}}}}}}},{P}_{{{{{{{{\rm{g}}}}}}}}}^{{{{{{{{\rm{close}}}}}}}}},{n}_{\left|{{{{{{{\rm{g}}}}}}}}\right\rangle },{n}_{\left|{{{{{{{\rm{e}}}}}}}}\right\rangle }\) can be obtained.

Hereafter, We can directly calculate the expected transmission intensity if the transistor is gated by an ideal single photon source. As an example, the predicted transmission intensity when a normally open transistor is in the"on” state (\({n}_{\left|0\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}\)) or switched off by a single photon (\({n}_{\left|1\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}\)) can be written as

where *η* = 0.80 is the single-photon-gating efficiency discussed in Supplementary Note 3. According to the definition mentioned in the main text, we can accordingly calculate the gain and extinction ratio based on the \({n}_{\left|0\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}\) and \({n}_{\left|1\right\rangle }^{{{{{{{{\rm{open}}}}}}}}}\).

## Data availability

The data generated in this study have been deposited in the zenodo database without accession code https://doi.org/10.5281/zenodo.7093109. Contact the corresponding author with any further questions.

## Code availability

The codes that support the findings of this study are available from the authors upon request.

## References

Cirac, J. I., Zoller, P., Kimble, H. J. & Mabuchi, H. Quantum state transfer and entanglement distribution among distant nodes in a quantum network.

*Phys. Rev. Lett.***78**, 3221–3224 (1997).Kimble, H. J. The quantum internet.

*Nature***453**, 1023–1030 (2008).Gorniaczyk, H., Tresp, C., Schmidt, J., Fedder, H. & Hofferberth, S. Single-photon transistor mediated by interstate rydberg interactions.

*Phys. Rev. Lett.***113**, 053601 (2014).Tiarks, D., Baur, S., Schneider, K., Dürr, S. & Rempe, G. Single-photon transistor using a förster resonance.

*Phys. Rev. Lett.***113**, 053602 (2014).Chen, W. et al. All-optical switch and transistor gated by one stored photon.

*Science***341**, 768–770 (2013).Shomroni, I. et al. All-optical routing of single photons by a one-atom switch controlled by a single photon.

*Science***345**, 903–906 (2014).Reiserer, A., Kalb, N., Rempe, G. & Ritter, S. A quantum gate between a flying optical photon and a single trapped atom.

*Nature***508**, 237–240 (2014).Tiecke, T. G. et al. Nanophotonic quantum phase switch with a single atom.

*Nature***508**, 241–244 (2014).Sun, S., Kim, H., Solomon, G. S. & Waks, E. A quantum phase switch between a single solid-state spin and a photon.

*Nat. Nanotechnol.***11**, 539–544 (2016).Sun, S., Kim, H., Luo, Z., Solomon, G. S. & Waks, E. A single-photon switch and transistor enabled by a solid-state quantum memory.

*Science***361**, 57–60 (2018).Fink, J. M. et al. Climbing the Jaynes-Cummings ladder and observing its nonlinearity in a cavity QED system.

*Nature***454**, 315–318 (2008).Volz, T. et al. Ultrafast all-optical switching by single photons.

*Nat. Photonics***6**, 605–609 (2012).Zasedatelev, A. et al. Single-photon nonlinearity at room temperature.

*Nature***597**, 493–497 (2021).Chang, D. E., Sørensen, A. S., Demler, E. A. & Lukin, M. D. A single-photon transistor using nanoscale surface plasmons.

*Nat. Phys.***3**, 807–812 (2007).O’Brien, J. L., Furusawa, A. & Vučković, J. Photonic quantum technologies.

*Nat. Photonics***3**, 687–695 (2009).Giovannetti, V., Lloyd, S. & Maccone, L. Quantum random access memory.

*Phys. Rev. Lett.***100**, 160501 (2008).Chen, K. C., Dai, W., Errando-Herranz, C., Lloyd, S. & Englund, D. Scalable and high-fidelity quantum random access memory in spin-photon networks.

*PRX Quantum***2**, 030319 (2021).Neumeier, L., Leib, M. & Hartmann, M. J. Single-photon transistor in circuit quantum electrodynamics.

*Phys. Rev. Lett.***111**, 063601 (2013).Kyriienko, O. & Sørensen, A. S. Continuous-wave single-photon transistor based on a superconducting circuit.

*Phys. Rev. Lett.***117**, 140503 (2016).Stolyarov, E. V. Single-photon switch controlled by a qubit embedded in an engineered electromagnetic environment.

*Phys. Rev. A***102**, 063709 (2020).Manzoni, M. T., Reiter, F., Taylor, J. M. & Sørensen, A. S. Single-photon transistor based on superconducting systems.

*Phys. Rev. B***89**, 180502 (2014).Kono, S., Koshino, K., Tabuchi, Y., Noguchi, A. & Nakamura, Y. Quantum non-demolition detection of an itinerant microwave photon.

*Nat. Phys.***14**, 546–549 (2018).Besse, J.-C. et al. Single-shot quantum nondemolition detection of individual itinerant microwave photons.

*Phys. Rev. X***8**, 021003 (2018).Carusotto, I. et al. Photonic materials in circuit quantum electrodynamics.

*Nat. Phys.***16**, 268–279 (2020).Blais, A., Grimsmo, A. L., Girvin, S. M. & Wallraff, A. Circuit quantum electrodynamics.

*Rev. Mod. Phys.***93**, 025005 (2021).Reuer, K. et al. Realization of a universal quantum gate set for itinerant microwave photons.

*Phys. Rev. X***12**, 011008 (2022).Blais, A., Girvin, S. M. & Oliver, W. D. Quantum information processing and quantum optics with circuit quantum electrodynamics.

*Nat. Phys.***16**, 247–256 (2020).Blais, A., Grimsmo, A. L., Girvin, S. M. & Wallraff, A. Circuit quantum electrodynamics.

*Rev. Mod. Phys.***93**, 025005 (2021).Gu, X., Kockum, A. F., Miranowicz, A., Liu, Y. & Nori, F. Microwave photonics with superconducting quantum circuits.

*Phys. Rep.***718-719**, 1–102 (2017).Gheri, K. M. & Ritsch, H. Single-atom quantum gate for light.

*Phys. Rev. A***56**, 3187–3190 (1997).Wang, Z. et al. A flying schrödinger’s cat in multipartite entangled states.

*Sci. Adv.***8**, eabn1778 (2022).Duan, L.-M. & Kimble, H. J. Scalable photonic quantum computation through cavity-assisted interactions.

*Phys. Rev. Lett.***92**, 127902 (2004).Besse, J.-C. et al. Parity detection of propagating microwave fields.

*Phys. Rev. X***10**, 011046 (2020).Eichler, C., Bozyigit, D. & Wallraff, A. Characterizing quantum microwave radiation and its entanglement with superconducting qubits using linear detectors.

*Phys. Rev. A***86**, 032106 (2012).Slichter, D. H. et al. Measurement-induced qubit state mixing in circuit QED from up-converted dephasing noise.

*Phys. Rev. Lett.***109**, 153601 (2012).Boissonneault, M., Gambetta, J. M. & Blais, A. Improved superconducting qubit readout by qubit-induced nonlinearities.

*Phys. Rev. Lett.***105**, 100504 (2010).Bishop, L. S., Ginossar, E. & Girvin, S. M. Response of the strongly driven jaynes-cummings oscillator.

*Phys. Rev. Lett.***105**, 100505 (2010).Reed, M. D. et al. High-fidelity readout in circuit quantum electrodynamics using the jaynes-cummings nonlinearity.

*Phys. Rev. Lett.***105**, 173601 (2010).Koch, J. et al. Charge-insensitive qubit design derived from the cooper pair box.

*Phys. Rev. A***76**, 042319 (2007).Eichler, C. et al. Experimental state tomography of itinerant single microwave photons.

*Phys. Rev. Lett.***106**, 220503 (2011).Mallet, F. et al. Quantum state tomography of an itinerant squeezed microwave field.

*Phys. Rev. Lett.***106**, 220502 (2011).

## Acknowledgements

This work was supported by Innovation Program for Quantum Science and Technology (2021ZD0301704), the Tsinghua University Initiative Scientific Research Program, the Ministry of Education of China, and the National Natural Science Foundation of China under Grant No.11874235 and No.11925404.

## Author information

### Authors and Affiliations

### Contributions

L.M.D. and H.Y.Z. proposed and supervised the experiment. Z.H.B. and Y.L. prepared the sample with the assistance of W.Z.C., W.T.W., and L.Y.S. Z.L.W. and H.Y.Z. collected and analyzed the data with the assistance of Z.H.B., Y.L., X.Y.H., J.H.W., and Y.P.S. Z.L.W. carried out the theoretical analysis with the assistance of Y.K.W. Z.L.W., H.Y.Z., and L.M.D. wrote the manuscript.

### Corresponding authors

## Ethics declarations

### Competing interests

The authors declare no competing interests.

## Peer review

### Peer review information

*Nature Communications* thanks Christian Andersen, Shiro Saito and the other, anonymous, reviewer(s) for their contribution to the peer review of this work.

## Additional information

**Publisher’s note** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Supplementary information

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Wang, Z., Bao, Z., Li, Y. *et al.* An ultra-high gain single-photon transistor in the microwave regime.
*Nat Commun* **13**, 6104 (2022). https://doi.org/10.1038/s41467-022-33921-6

Received:

Accepted:

Published:

DOI: https://doi.org/10.1038/s41467-022-33921-6

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.