# Nonlinear LC Circuit with Josephson Junction

###### Abstract

This paper illustrates a unified approach, classical circuit and control theories, to study a nonlinear LC circuit with a current dependent inductance as model of the Josephson junction, the mathematical analysis is complemented with simulations to visualize different dynamics under changes in parameters and inputs. Currently, in quantum computing, superconducting circuits with Josephson junctions are used as the building blocks of quantum bits or qubits.

Original Article \paperfieldJournal Section \corraddressAlberto Delgado PhD, Electrical and Electronics Engineering Department, National University of Colombia, Bogota, 11001, Colombia \corremailadelgado@ieee.org \fundinginfoNational University of Colombia

## 1 Introduction

Recently there has been a growing interest in quantum computing hardware using superconducting circuits as quantum bits or qubits, the main component in these circuits is the Josephson junction [1, 2] used to improve the energy resolution between ground and excited states. On the other hand, in classic circuit theory, a Josephson junction can be modelled as a nonlinear inductance with possible applications in tunable filters [3]. Also within a unified classical approach, circuit theory and control theory, the dynamics of a Josephson junction has been studied in magnetically coupled circuits [4] using the concepts of state variables and the phase plane as part of the analysis, simulations are included to visualize the mathematical results. The main goals of this paper are: (i) to introduce the Josephson junction as another circuit element; (ii) study in detail a nonlinear LC oscillator, with Josephson junction, using a unified approach of circuit and control theories including an application of machine learning with a neural network.

The paper is organized as follows. Section two introduces the LC circuit state equations with a nonlinear inductance that models the Josephson junction. Section three is the corresponding Taylor linearization of the nonlinear circuit around an operating point . Section four presents the second order transfer function, from the Taylor linearization, with a resonance frequency that depends on the operating point. Section five is an alternative to Taylor linearization known as input - output linearization where the nonlinear terms are cancelled exactly to obtain a linear dynamics between a new circuit input and the given output. Section six is a practical implementation of nonlinear feedback with a neural network to overcome, for this circuit with the proposed nonlinear output, the limitation of input - output linearization, namely the singularity when is zero. Section seven is the well known linear state feedback, the advantage of this approach is the reduced number of parameters when compared with the neural network linearization scheme. Finally, conclusions are formulated in section eight.

The overall analysis in this paper includes concepts such as, state variables, Taylor linearization, operating points, transfer function, natural frequency, input - output linearization, approximate linearization with neural network, approximate linearization with linear state feedback. It is important to mention that simulations are used to illustrate the main mathematical results so the reader can visualize different circuit dynamics when parameters or inputs are changed.

## 2 Nonlinear LC Circuit

Consider the nonlinear circuit, Figure 1, with three elements in parallel, current source , capacitance , and Josephson junction [1, 2].

The nonlinear inductance follows the equation,

(1) |

Where is the Josephson junction critical current and is a constant, in the simulations below .

From the circuit,

(2) | |||

(3) |

The proposed output is a nonlinear function of the state variables , for example,

(4) |

the dot in the dynamic equations means time derivative.

## 3 Taylor linearization

A linear version of the nonlinear LC circuit can be formulated for an operating point by using Taylor linearization [5]. Writing the circuit equations again,

(5) | ||||

(6) | ||||

(7) |

The input is periodic with frequency plus a constant term,

(8) | ||||

(9) |

Finding the equilibrium point ,

(10) | |||

(11) |

Solving,

(12) | |||

(13) |

The linearized system at the equilibrium point is calculated as follows,

(14) | |||

(15) |

Finally, the linearized system at the equilibrium point ,

(16) | |||

(17) |

Where the output parameters are,

(18) |

and is the Taylor linearized output.

It is also possible to define another output for the linearized system as a nonlinear function of the new state variables , for example,

(19) |

To summarize there are three outputs: is the nonlinear output of the nonlinear circuit, is the linear output for the Taylor linearized circuit, is the nonlinear output for the Taylor linearized circuit.

To visualize the dynamics of both, nonlinear system and linearized system, simulations for two different operating points were carried out in octave [6] with sampling period T = 0.01 s and a total number of samples NS = 2000.

The parameters for the first operating point are, , , , . Figure 2 shows the state variables for the nonlinear system versus the state variables for the Taylor linearized system, and Figure 3 presents the outputs . Notice that for this operating point the Taylor approximation is close to the actual nonlinear system, the operating point is smaller in magnitude compared with the critical current of the Josephson junction.

The parameters for the second operating point are, , , , . Figure 4 shows the state variables for the nonlinear system versus the state variables for the linearized system, and Figure 5 presents the outputs , for this operating point the approximation error increases, is closer to .

Notice, Figures 2 and 4, the reduction in frequency when increases its magnitude from 0.05 to 0.1.

## 4 Transfer function

Calculating the transfer function for the Taylor linearized system,

(20) |

with s the Laplace operator. Solving for the natural frequency,

(21) |

notice that is a function of the operating point . Figure 6 illustrates the change in the natural frequency as function of the operating point , increasing the magnitude of decreases .

## 5 Exact feedback linearization

For the original nonlinear circuit it is possible to obtain a linear dynamics between a new input and the nonlinear output by calculating a linearizing feedback . This procedure is an exact linearization also know as input - output linearization, the linearizing input u(t) cancels the nonlinear terms exactly and produces a linear differential equation between y(t) and v(t) [7].

The output from the nonlinear circuit,

(22) |

taking the time derivative,

(23) |

where,

(24) | ||||

(25) |

calculating,

(26) | ||||

(27) |

Replacing all terms for results,

(28) |

Then the input u,

(29) | |||

(30) |

cancels the nonlinear terms and produces a linear dynamics between the new input and the output ,

(31) |

The linearization is exact but, in this case for the given output, there is a problem because the feedback u(t) works only when .

## 6 Neural network feedback linearization

Figure 7 is a block diagram that illustrates an approach to approximate a linear dynamics between an external input v(t) and the nonlinear circuit output y(t) using machine learning to obtain the linearizing feedback u(t).

The reference model, in this case , is a first order system,

(32) |

The block NN known as neural network is a parametric model that can be trained to minimize a performance index by adjusting its parameters [8]. The neural network has three inputs and one output , in other words, the network learns the map to approximate the linear dynamics of the reference model by minimizing the index J.

For a discrete time system the performance index J can be,

(33) |

where NS is the number of samples and k the simulation time. In the simulations below the sampling time is T = 0.01 s and NS = 1000.

Figure 8 shows a neural network with architecture , three inputs, N = 8 neurons in the hidden layer, and one output.

The neural network equations are,

(34) | ||||

(35) |

The training algorithm [9] finds the parameters by minimizing the performance index J for a given input v(t).

Figure 9 shows a successful training example with final J = 0.0068, the nonlinear circuit output follows the desired linear dynamics . Figure 10 presents the external input v(t) and the linearizing feedback , there are sudden changes in at the discontinuity points of , the feedback is bounded .

Table 1 is the final set of parameters for the and performance index J = 0.0068.

-0.7958 | -1.4315 | 0.2044 | 1.2613 |

-0.8271 | -0.0502 | -1.4862 | -3.7185 |

1.7226 | 0.3998 | 2.7922 | 0.4928 |

-0.0450 | 1.1977 | 0.5819 | 0.4234 |

0.5180 | -0.9837 | -0.7239 | -0.3991 |

-1.0230 | 0.1191 | -0.2298 | 1.2199 |

0.8017 | 0.3706 | 1.0007 | -0.2855 |

-1.2453 | 1.2427 | 0.6089 | 0.6291 |

## 7 Linear state feedback

Figure 11 is a block diagram that shows how to approximate a linear dynamics between an external input v(t) and the nonlinear circuit output y(t) using a linear state feedback u(t). The main advantage here compared with the neural network approach is the reduction in both, the number of parameters and the time required to find the final values. However, it is clear that a linear state feedback is not capable of cancelling nonlinear terms.

The linear state feedback equation is,

(36) |

The same training algorithm [9] finds the parameters by minimizing the performance index J for a given input v(t).

Figure 12 shows a successful training example with final performance index J = 0.00487, the nonlinear circuit output follows the desired linear dynamics . Figure 13 presents the external input v(t) and the linear state feedback , the feedback is bounded .

The final linear state feedback,

(37) |

## 8 Conclusions

Superconducting circuits with Josephson junctions are the building blocks of quantum bits or qubits. The main motivation for this paper was to study, from a classical point of view, a nonlinear LC circuit with a Josephson junction as the nonlinear inductance, the analysis integrates circuit and control theories.

Taylor linearization is a good approximation for the nonlinear circuit when the operating point is small in magnitude compared with the critical current of the junction, circuit outputs can be linear or nonlinear functions of the state variables.

Feedback input - output linearization is an alternative to Taylor linearization by cancelling exactly the nonlinear terms between a new input and the output, but as shown here sometimes there are limitations due to singularities in the control law.

Machine learning, with neural networks, can be used as parametric nonlinear control law to approximate an exact input - output feedback linearization, this approach can overcome to some degree the problem of singularities but the number of parameters and training the network can be computationally intensive. Finally a linear feedback with trainable parameters can be used to approximate a linear dynamics for a known input sequence, the linear feedback has a reduced number of parameters when compared with the neural network but is not capable of cancelling nonlinear terms. In both learning settings, linear and nonlinear feedback, the control law is bounded to avoid singularities, this limitation also impacts the approximation of the desired linear dynamics.

## Acknowledgments

Alberto Delgado thanks his employer the National University of Colombia for the support during the sabbatical year 2018. Also, the author thanks Prof. Pierre Rouchon and the organizers of the program Measurement and Control of Quantum Systems: Theory and Experiments at the Institute Henri Poincare - Paris, for hosting an academic visit from 16 April - 13 July, 2018.

## References

- [1] Devoret, M.H., Wallraff, A., Martinis, J.M. Superconducting qubits: a short review. arXiv: 0411174v1 [cond-mat.mes-hall], 2004.
- [2] Wendin, G. Quantum information processing with superconducting circuits: a review. arXiv: 1610.02208v2 [quant-ph], 2017.
- [3] Zhou, T.G., Fang, L., Li, S., Ji, L., Song, F.B., He, M., Zhang, X., and Yan, S.L. Nonlinear inductance of intrinsic Josephson junction arrays and its application to tunable filters. IEEE Transactions on applied superconductivity, Vol. 17, No. 2, pp. 586 - 588, June 2007.
- [4] Delgado, A., Magnetically coupled circuit with nonlinear inductor, IEEE International Conference on Electromagnetics and Advanced Applications, Cartagena - Colombia, September 2018.
- [5] Close, C.M., Frederick, D.H., Newell, J.C. Modeling and analysis of dynamic systems. John Wiley Sons, New York, 2002.
- [6] Eaton, J.W., Bateman, D., Hauberg, S., Wehbring, R. GNU Octave version 4.2.1 manual: a high-level interactive language for numerical computations, 2017.
- [7] Isidori, A. Nonlinear control systems. Springer, London, 1995.
- [8] Norgaard, M., Ravn, O., Poulsen, N.K., Hansen, L.K. Neural networks for modelling and control of dynamic systems. Springer, London, 2001.
- [9] Bremermann H.J., Anderson R.W. How the brain adjusts synapses — maybe. In Boyer R.S. (eds) Automated reasoning. Automated reasoning series. Springer, Dordrecht, 1991. 1: 119-147. DOI: 10.1007/978-94-011-3488-0-6.