{"id":379780,"date":"2024-06-25T03:50:53","date_gmt":"2024-06-25T03:50:53","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=379780"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=379780","title":{"rendered":"<span>Mechanical Quantum Computer<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>Quantum computers have gradually migrated from \u201cnatural\u201d quantum objects like ions and quantum dots to \u201cartificial\u201d objects like transmons, where natural frequencies of LC circuit mimic energy levels. Coaxial cables attached to such circuits excite the system, read their state, and adjust their properties. They are still quantum objects and operate at low temperatures.<\/p>\n<p>  <\/p>\n<p>I wondered if a similar system can be built with large \u201cclassical\u201d mechanical objects. Here I demonstrate 2 -qubit quantum computer built of coupled pendulums.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>Quantum computers<\/h2>\n<p>  <\/p>\n<p>Quantum computers (QCs) use so-called qubits, systems in which mixed states are possible, representing a combination of two initial states \u03b1|0>+\u03b2|1>. Unlike conventional digital computers, manipulation of mix of initial states is possible.<\/p>\n<p>  <\/p>\n<p>The desired state of a qubit can be changed by external excitation, and the interaction of many such qubits allows computation. It is sometimes argued that the fundamental point of QC is \u201cquantization\u201d, i.e. during computation we deal with some undefined states, and only at the moment of measurement itself we get either 0 or 1 state. Intermediate values between 0 and 1 are obtained by repeatedly performing an experiment where 0 or 1 falls out according to some probability and the final result is the average of all experiments.<\/p>\n<p>  <\/p>\n<p>We will show that similar results are quite achievable on macroscopic classical objects and many basic properties of QC can be demonstrated even on mechanical objects. We will not discuss quantum entanglement, which is fundamentally applicable only to quantum objects, the role of quantum entanglement in QC is a separate story.<\/p>\n<p>  <\/p>\n<h2>Two-level system<\/h2>\n<p>  <\/p>\n<p>The two-level quantum system has some specific features. Let us consider the classical atomic two-level system. There are two levels with different energies. If the system is in a state with lower energy, we can excite it with light and with probability A<sub>01<\/sub> it will move to the upper state (absorption). If the system is in the upper state, then when irradiated, it will move to the lower state with a probability of A<sub>10<\/sub> (stimulated emission). As Einstein showed, A<sub>01<\/sub>=A<sub>10<\/sub>. In the future, we will neglect the spontaneous decay of the upper level and assume that all transitions from the upper level are stimulated.<\/p>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qv\/nl\/rz\/qvnlrzfgu3pa2cvl6uxdfwlzwls.png\" width=\"500\" data-src=\"https:\/\/habrastorage.org\/webt\/qv\/nl\/rz\/qvnlrzfgu3pa2cvl6uxdfwlzwls.png\"\/><\/div>\n<p>  <em>Fig.1. A two-level system with a transition frequency of \u03c9<sub>01<\/sub>.<\/em><br \/>  \u00a0  <\/p>\n<p>Under continuous illumination the system is moving between lower and upper levels. This is the so-called Rabi oscillations. In quantum mechanics, we say that the system is in an undetermined state, but at the moment of measurement, we can detect it in either 0 or 1 state with a certain degree of probability. So we&#8217;re talking about oscillation of probability.<\/p>\n<p>  <\/p>\n<p>Note that the Rabi frequency is not a 0 \u2014 1 transition frequency. The frequency of Rabi oscillations depends on the intensity of the excitation and probability of transitions. Intuitively we can consider these oscillations as oscillations in a system with positive feedback and delay. For example, with higher intensity of excitation or probability of transitions the transition will occur faster and Rabi oscillations will have higher frequency<\/p>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ad\/20\/s9\/ad20s9br-rkzky9ntyc3ykkmwmo.png\" width=\"500\" data-src=\"https:\/\/habrastorage.org\/webt\/ad\/20\/s9\/ad20s9br-rkzky9ntyc3ykkmwmo.png\"\/><\/div>\n<p>  <em>Fig. 2. Transition probability under continuous excitation.<\/em><br \/>  \u00a0  <\/p>\n<p>Under continuous excitation at <em>\u03c9<sub>01<\/sub><\/em> frequency, the probability of finding the system in the state |1> oscillates with the frequency \u03a9<sub>Rabi<\/sub>. As can be seen from Figure 2, the state of the system depends on how long we excite the system (pulse duration). We can switch it from 0 to 1 (the so-called \u03c0 pulse) or transfer the system to a superposition state where probability to find the system in the upper state is 0.5 (\u03c0\/2 pulse). We can then apply another pulse and switch the system again. If the system and excitation parameters do not change while experiment, the state of the system after the second pulse does not depend on how much time \u0394T passed between the first and second pulses.<\/p>\n<p>  <\/p>\n<p>If the parameters of the system or excitation have changed slightly during the time between pulses, we are dealing with a phase. If after the first pulse system parameters have been changed, after the second \u03c0\/2 pulse pulse the result will depend on how much time has passed between the first and second pulses. In any case, we are always dealing with a phase shift relative to the excitation, this is not a \u201cglobal\u201d phase, in the absence of interaction with an external field, it makes no sense.<\/p>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ga\/1u\/wt\/ga1uwth_6wllyk8daojk8fx2dv4.png\" width=\"660\" data-src=\"https:\/\/habrastorage.org\/webt\/ga\/1u\/wt\/ga1uwth_6wllyk8daojk8fx2dv4.png\"\/><\/div>\n<p>  <em>Fig.3 a,b Evolution of the system after excitation with two \u03c0\/2 pulses. If the excitation and system parameters do not change, the duration \u0394T does not affect the final state (a). If there is a phase difference between excitation and Rabi oscillations, the result depends on time passed between pulses (b).<\/em><br \/>  \u00a0<br \/>  All these numerous states of a two-level system can be described using the so-called Bloch sphere.  <\/p>\n<p>The lower level corresponds to the North Pole, let&#8217;s denote it as the vector [1 0] (lower level =1, upper level =0) or as the state |0>. The South Pole is the vector [0 1] or |1>\u2026 The superposition state is the equator, different points on the equator correspond to different phases. The sates at the equator can be described with complex numbers (z=x+i*y, z=cos(\u03c6)+i*sin(\u03c6).<\/p>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/a9\/el\/n-\/a9eln-gbdbssveaxmggfdb_4sx8.png\" width=\"400\" data-src=\"https:\/\/habrastorage.org\/webt\/a9\/el\/n-\/a9eln-gbdbssveaxmggfdb_4sx8.png\"\/><\/div>\n<p>  <em>Fig.4. The Bloch sphere, a graphical representation of a two-level system. Two types of notations are shown. The north pole corresponds to the filled lower level, the south pole corresponds to the filled upper level. The equator is a superposition of states 0 and 1, where the contribution of levels 1 and 2 is the same.<\/em><br \/>  \u00a0<br \/>  Then the first \u03c0\/2 pulse from Figure 3a on the Bloch sphere looks like a 90 degree rotation around the X axis. The second \u03c0\/2 pulse is another 90 degree rotation (these 2 pulses are equivalent to one \u03c0 pulse).  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/j9\/i-\/3n\/j9i-3nzsqc31byxvxm728cubkg0.png\" width=\"660\" data-src=\"https:\/\/habrastorage.org\/webt\/j9\/i-\/3n\/j9i-3nzsqc31byxvxm728cubkg0.png\"\/><\/div>\n<p>  <em>Fig. 5. Two \u03c0\/2 pulses corresponding to Figure 3a. The first pulse transfers the system from |0> to the superposition (equator), the second \u2013 from the equator to the state |1>. If parameters of the excitation and the system stay unchanged, the result of the final state does not depend on the delay between pulses.<\/em><br \/>  \u00a0  <\/p>\n<p>Rotation around the Z axis corresponds to the phase. To obtain this phase shift, we must slightly change the system after pulse 1, and if after a while we test it with a second \u03c0\/2 pulse, the result will depend on the delay between these two \u03c0\/2 pulses because of accumulated phase difference.<\/p>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/j9\/2n\/2l\/j92n2lwbemgxl4lh_gcrwvdgacc.png\" width=\"660\" data-src=\"https:\/\/habrastorage.org\/webt\/j9\/2n\/2l\/j92n2lwbemgxl4lh_gcrwvdgacc.png\"\/><\/div>\n<p>  <em>Fig. 6. Two \u03c0\/2<sub>x<\/sub> pulses corresponding to Figure 3b. During the time \u0394T, a phase shift occurs, which affects the final state after exposure to the second pulse. If the phase advance is exactly \u03c6=\u03c0 \/2, the second pulse will not change the state of the system at all (the radius of the second red circle will be 0)<\/em><br \/>  \u00a0  <\/p>\n<p>In summary, a two-level system can exist in a huge number of states (corresponding to any points on the Bloch sphere). These states are controlled by parameters of the excitation and modification of the system.  <\/p>\n<p>  \u00a0<br \/>  Such a system is called <em>a qubit<\/em>.<\/p>\n<h2>Artificial two-level system. Qubit 1.<\/h2>\n<p>  <\/p>\n<p>Quantum mechanical two-level systems correspond to atomic optical or microwave transitions. Qubits were originally created based on such transitions. However, it is possible to create an artificial two-level system with similar properties. Modern quantum computers are made of so-called transmons, these are resonant superconducting LC circuits operating in the microwave range. Their size is far from atomic sizes, they have dimensions of 0.2-1 mm.<\/p>\n<p>  It is possible also to create a \u201cclassic\u201d system with properties similar to a two-level system. Such systems are described in the literature [<a href=\"https:\/\/pubs.aip.org\/aapt\/ajp\/article-abstract\/82\/10\/947\/1039442\/The-classical-Bloch-equations?redirectedFrom=fulltext\" rel=\"nofollow noopener noreferrer\">springs<\/a> (<a href=\"https:\/\/arxiv.org\/abs\/1410.0710\" rel=\"nofollow noopener noreferrer\">arxiv<\/a>), <a href=\"https:\/\/www.nature.com\/articles\/nphys2666\" rel=\"nofollow noopener noreferrer\">beams<\/a> (<a href=\"https:\/\/arxiv.org\/abs\/1212.3172\" rel=\"nofollow noopener noreferrer\">arxiv<\/a>)]  <\/p>\n<p>I will explore a mechanical system consisting of coupled pendulums experimentally by computer simulation. This approach does not use any equations and corresponds to an experiment in the real world. The model of this mechanical system is built in Matlab Simulink, in which we specify mechanical parts such as rods, balls, joints, springs, etc. and describe links between them. The result of the simulation is animation of some moving parts and plots of specified parameters.<\/p>\n<p>  <\/p>\n<p>>The objects are rods with a length of 20 cm and a radius of 1 mm with balls with a radius of 1 cm and a density of 1000 kg\/m3. The weight of such a ball is about 4 g. The distance between the pendulums is 20 cm and the balls are connected to each other by a spring of the same length.<\/p>\n<p>  <\/p>\n<p>The state of such a system can be described as a combination of the angles of each of the pendulums \u03c6<sub>1<\/sub> and\u00a0\u03c6<sub>2<\/sub>, but it is more convenient to describe this system in coordinates Q<sub>0<\/sub>=\u03c6<sub>1<\/sub> +\u00a0 \u03c6<sub>2<\/sub> and Q<sub>1<\/sub>=\u03c6<sub>1<\/sub> &#8212;\u00a0 \u03c6<sub>2<\/sub>. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Pendulum_(mechanics)\" rel=\"nofollow noopener noreferrer\">Wiki: Pendulum_(mechanics)<\/a><\/p>\n<p>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/664fdad8315cc3d4a11a4e32\" data-style=\"\" id=\"664fdad8315cc3d4a11a4e32\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig.7. Two types of oscillations of coupled pendulums. There is a spring between the pendulums with a length equal to the distance between the pendulums, it is not animated, because MATLAB cannot animate anything except the pendulums themselves.<\/em><br \/>  \u00a0  <\/p>\n<p>So, we have an imitation of the lower level (Q<sub>1<\/sub> =0; Q<sub>0<\/sub>=max, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u043c |0>) and the upper level (Q<sub>1<\/sub> = max; Q<sub>0<\/sub> =0, \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u043c |1>). The frequency difference is \u0394\u03b3=0.45 Hz.<\/p>\n<p>  The |0> and |1> states are <em>modes (types)<\/em> of oscillations, we do not care about oscillations itself, any individual movements of each of the pendulums can be expressed as linear combination of these two modes.  <\/p>\n<p>Let&#8217;s see how we can excite this system to transfer it from the state |0> to |1> (and back). It is reasonable to assume that we need to pull one of the balls with some periodic force. By analogy with a quantum two-level system, the frequency of excitation should correspond to the frequency difference between transitions, i.e. 0.45 Hz.<\/p>\n<p>  The excitation is realized as a periodic force between the left ball and the anchor.  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qu\/f9\/zm\/quf9zmsolegvqjebil5faif-gkk.png\" width=\"300\" data-src=\"https:\/\/habrastorage.org\/webt\/qu\/f9\/zm\/quf9zmsolegvqjebil5faif-gkk.png\"\/><\/div>\n<p>  <em>Fig.8 Excitation of the pendulums. The thread connected by means of a spring to the left ball moves periodically. This corresponds to the force F=k*r*sin(\u03c9t).<\/em><br \/>  \u00a0<br \/>  Under such excitation the system changes oscillation mode (state) between |0> \u0438 |1><br \/>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/664fdee2ee339fd48b100f67\" data-style=\"\" id=\"664fdee2ee339fd48b100f67\" width=\"\"><\/div>\n<\/div>\n<p>  \u00a0<br \/>  <em>Fig.9 Graphs (amplitude Q0, amplitude Q1, excitation force) The system is in the state |0>, after ~5 seconds the periodic force is applied to the system as in Fig.8, the excitation frequency is equal to the frequency difference between |0> and |1> (0.45Hz).<\/em><br \/>  \u00a0  <\/p>\n<p>The system begins to oscillate between states |0> and |1>. (The state of the system is characterized by the amplitudes of the envelopes Q<sub>0<\/sub> and Q<sub>1<\/sub>, the oscillations themselves do not matter). The maxima of the envelope Q\u00ad<sub>0<\/sub> correspond to the minima of Q<sub>1<\/sub> (and vice versa) these are the points of pure states |0> and |1>, or the North and South poles on the Bloch sphere. When the amplitudes of the envelopes Q<sub>0<\/sub> and Q<sub>1<\/sub> are equal, the state corresponds to an equal contribution (superposition) or equator on the Bloch sphere.<\/p>\n<p>  This corresponds to Rabi oscillations from Fig.2.  <\/p>\n<p>If the excitation force is increased (for example, by making the spring k more rigid), the frequency of Rabi oscillations is expected to increase, as we noted when discussing a two-level quantum system.<\/p>\n<p>  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/664fdff7ee339fd48b100fab\" data-style=\"\" id=\"664fdff7ee339fd48b100fab\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig. 10 Oscillations when the excitation force is 2 times higher than the force from Fig.9.<\/em><br \/>  \u00a0  <\/p>\n<p>Let&#8217;s see how our mechanical qubit reacts to pulses of duration corresponding to the \u03c0\/2 phase of Rabi oscillations (Fig.2).<\/p>\n<p>  <\/p>\n<p>The excitation must be coherent, i.e. the phase and frequency of the excitation force must be constant for the entire duration of the experiment. So the pulses are cut off a continuous sinusoidal force as in Fig.10.<\/p>\n<p>  <\/p>\n<p>In full agreement with the behavior of a two-level system, the first (\u03c0\/2) pulse puts the pendulums into superposition state, where the contribution from |0> and |1> (i.e., the oscillation types Q0 and Q1) is the same. The system remains in this state until we apply another (\u03c0\/2) pulse, which will transfer the system to the |1> state. A similar final result can be achieved with a single pulse of twice the duration ((\u03c0)x pulse). Since the excitation pulses correspond to rotations around the x axis, let&#8217;s call them (\u03c0\/2)<sub>x<\/sub> or (\u03c0)<sub>x<\/sub>. Or, in other words, X<sup>1\/2<\/sup> and X gates, as they are commonly referred to in the world of quantum computers.<\/p>\n<p>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/664fdf2a28dfc09d9e37adc9\" data-style=\"\" id=\"664fdf2a28dfc09d9e37adc9\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig.11. The reaction of the system to two (\u03c0\/2)<sub>x<\/sub>x pulses. (\u03c0\/2)<sub>x<\/sub> is applied by harmonic force pulse for a time of ~2.5 seconds in the manner shown in Fig. 8. The upper graph corresponds to the amplitude of the oscillations Q0, the middle one corresponds to the amplitude Q1, the lower graph is the force applied to the left pendulum according to the scheme Fig. 8.<\/em><br \/>  \u00a0<br \/>  This result corresponds to Fig. 3a.  <\/p>\n<p>Now let&#8217;s see how the phase difference affects the result of the same experiment with two (<em>\u03c0<\/em>\/2)<sub>x<\/sub> pulses. In this case, we change the phase during the superposition state by changing the spring constant of the spring connecting the pendulums. Let&#8217;s choose the exposure time and the spring constant so that such a pulse leads to a 90-degree rotation relative to the z axis.<\/p>\n<p>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/664fe0922331bb9d71e13d0a\" data-style=\"\" id=\"664fe0922331bb9d71e13d0a\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig. 12. Excitation by two (\u03c0\/2)<sub>x<\/sub> similar to Fig. 11, however, here we also change spring constant of the spring connecting the pendulums (lower graph) for a time of 2.3 seconds. Note that the type of oscillation after this modulation stays the same, but the final state of the system after the second (\u03c0\/2)<sub>x<\/sub> differs significantly from the previous example.<\/em><br \/>  \u00a0  <\/p>\n<p>This means that by modulating the elasticity of the spring, we changed the phase so that on the Bloch sphere we transferred the system from the state 1\/\u221a2(|0>-i|1>) to the state 1\/\u221a2(|0>+|1>) and the second excitation pulse does not change the state (radius of rotation around the x axis, which corresponds to the 2nd excitation pulse, is equal to 0).<\/p>\n<p>  Similar to the x-axis, let&#8217;s call a 90-degree rotation relative to the z-axis: (<em>\u03c0<\/em>\/2)<sub>z<\/sub><\/p>\n<p>  Now let&#8217;s make pulse duration of the modulation of spring constant 2 times longer.<\/p>\n<p>  In full expectation of the behavior of the two-level system, the second excitation pulse puts the system back into the |0> state.<br \/>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/664fe0926748d7d46fad478b\" data-style=\"\" id=\"664fe0926748d7d46fad478b\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig. 13 Excitation by two (\u03c0\/2)<sub>x<\/sub> pulses when (\u03c0)<sub>z<\/sub> pulse is applied at the superposition state.<\/em><br \/>  \u00a0  <\/p>\n<p>So, we built a mechanical system with the properties of a two-level quantum system and showed that we can control such a system by exciting it or changing its properties. This is similar to what is happening with transmon-like systems, where \u03c0 or \u03c0\/2 pulses are microwave pulses and phase modulation is done with voltage applied to elements of the circuit.<\/p>\n<p>  We demonstrated the control of the system using the so-called X<sup>1\/2<\/sup>, X, Z<sup>1\/2<\/sup> (or S), Z gates, corresponding to rotations of 90, 180 degrees around the x axis, and 90, 180 degrees around z. Or in matrix form:<br \/>  \u00a0<br \/>  <u><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/wi\/yy\/g1\/wiyyg1fr-ojfc_-vn9junktwedy.png\" width=\"209\" data-src=\"https:\/\/habrastorage.org\/webt\/wi\/yy\/g1\/wiyyg1fr-ojfc_-vn9junktwedy.png\"\/><\/u><br \/>  Now we will move on to what can be considered a quantum computer. A system of two qubits.<\/p>\n<h2>Two-qubit system<\/h2>\n<p>  \u00a0<br \/>  Each of the qubits, as before, consists of two pendulums coupled by a spring. But we can make them interact with another spring, connected for a short time.<br \/>  \u00a0  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/8y\/pe\/s3\/8ypes3yyajw63vjlckiq_b3qytg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/8y\/pe\/s3\/8ypes3yyajw63vjlckiq_b3qytg.png\"\/><\/div>\n<p>  <em>Fig. 14. Two connected qubits. Two pairs of coupled pendulums with the possibility of communication between them using a spring.<\/em><br \/>  \u00a0<br \/>  We can choose the duration of the exchange and the elasticity of the spring, for example, so that the state of qubit0 is transferred to qubit1 and vice versa.<br \/>  This is a fantastic result! No matter how complex the oscillation of the pendulums from qubit 0 is, it will be transmitted to the pendulums from qubit 1 (and vice versa).<br \/>  Let us consider an experiment where qubit 0 is in the |0> state and qubit 1 is in the |1> state.<br \/>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/664fe4c0aeb5569d7b85199c\" data-style=\"\" id=\"664fe4c0aeb5569d7b85199c\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig.15 Two pairs of pendulums (qubits) are connected at the moment t= 10sec for a time of 4.5 seconds by a spring with an spring constant of 0.05 N\/m (two times less than the spring constants of the springs in qubits). the state |0> of qubit 0 becomes the state of qubit 1, and the state |1> of qubit 1 becomes the state of qubit 0. So, the qubits exchanged their states.<\/em><br \/>  \u00a0  <\/p>\n<p>The states can be any points on the Bloch sphere, they will be exactly (up to the phase, see below) transferred to each other.<\/p>\n<p>  For clarity, we will superimpose the results of two experiments on each other: the pendulums of the first qubit start at positions (0<sup>0<\/sup>,10<sup>0<\/sup>) and (0<sup>0<\/sup>,-10<sup>0<\/sup>), and the second qubit at position (-10<sup>0<\/sup>,0<sup>0<\/sup>). All these states correspond to equal amplitudes Q0 and Q1 (superposition) and correspond to different points on the equator of the Bloch sphere.<br \/>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/664fe5a8ee339fd48b10111b\" data-style=\"\" id=\"664fe5a8ee339fd48b10111b\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig. 16 Exchange of states located at the equator of the Bloch sphere (Q0=Q1) between two qubits, the results of two experiments with different initial states are superimposed.<\/em><br \/>  \u00a0<br \/>  We can determine the phase of states by probe with (<em>\u03c0<\/em>\/2)x pulses, just as we did in the experiments Fig. 11-13.<\/p>\n<p>  As a result, we find that there is a <em>\u03c0<\/em> phase changes and the exchange of states looks like this on Bloch spheres:  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/mp\/qe\/a1\/mpqea1_xqswpaoeo2oz_l3narkg.png\" width=\"500\" data-src=\"https:\/\/habrastorage.org\/webt\/mp\/qe\/a1\/mpqea1_xqswpaoeo2oz_l3narkg.png\"\/><\/div>\n<p>  <em>Fig. 17 \u041e\u0431\u043c\u0435\u043d \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u043a\u0443\u0431\u0438\u0442\u0430\u043c\u0438.<\/em><br \/>  \u00a0<br \/>  The states of 2 qubit system can be characterized by:<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/la\/5i\/xm\/la5ixmqk4jabehwpfafaajsdzew.png\" width=\"46\" data-src=\"https:\/\/habrastorage.org\/webt\/la\/5i\/xm\/la5ixmqk4jabehwpfafaajsdzew.png\"\/>basic states.<br \/>  \u00a0<br \/>  The interaction of 2 pairs of coupled pendulums leads to transformations |00>\u21d2|00>, |01> \u21d2 -|10>, |10>\u21d2-|01>, |11>\u21d2|11><\/p>\n<p>  This corresponds to the matrix:<br \/>  \u00a0<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/1e\/uq\/na\/1euqnaaukdd7f7y0algqlzq3hhw.png\" width=\"132\" data-src=\"https:\/\/habrastorage.org\/webt\/1e\/uq\/na\/1euqnaaukdd7f7y0algqlzq3hhw.png\"\/>  <\/p>\n<p>Any other states are expressed in terms of the base states, for example:<\/p>\n<p>   let the initial state of the qubit 0 be 1\/\u221a2*(|0>-i|1>)\u00a0 (\u0441\u043c. Fig.4), and the state of qubit 1 |0>,<br \/>  Then the initial state will be written as 1\/\u221a2*(|0>-i|1>)|0>=1\/\u221a2*|00>-1\/\u221a2*i*|10><br \/>  After connection with the spring, in accordance with our transformation matrix, we will have:  <\/p>\n<p>1\/\u221a2*|00>-1\/\u221a2*i*|10>\u00a0 \u21d2 1\/\u221a2*|00>+1\/\u221a2*i*|01>=|0>(1\/\u221a2(|0>+i|1>))),<\/p>\n<p>  <\/p>\n<p>The final state of qubit 0 becomes |0>, and the final state of qubit 1 becomes \u00bd*(|0>+i|1>)|0> (i.e. the initial state of qubit 0 but with a phase shift of 180<sup>o<\/sup>)<\/p>\n<p>  <\/p>\n<p>It is easy to see that our matrix is the product of matrices corresponding to <a href=\"https:\/\/docs.quantum.ibm.com\/api\/qiskit\/qiskit.circuit.library.iSwapGate\" rel=\"nofollow noopener noreferrer\">iSWAP gate<\/a> gates and <a href=\"https:\/\/docs.quantum.ibm.com\/api\/qiskit\/qiskit.circuit.library.SwapGate\" rel=\"nofollow noopener noreferrer\">SWAP gate<\/a> gate for a two\u2014qubit system, or, let us call it iSWAP<sup>2<\/sup>.<\/p>\n<p>  \u00a0<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/vx\/h6\/l0\/vxh6l0_c3xybp_zb_2vwfzuxbu4.png\" alt=\"image\" data-src=\"https:\/\/habrastorage.org\/webt\/vx\/h6\/l0\/vxh6l0_c3xybp_zb_2vwfzuxbu4.png\"\/><\/p>\n<h2>Deutsch&#8217;s algorithm<\/h2>\n<p>  <\/p>\n<p>The so-called Deutsch-Jozsa algorithm is often used to demonstrate principles of operation of quantum computers and show the superiority over common digital computers. For example, here is the implementation of this algorithm on QC where the qubits are two-level atomic transitions <a href=\"https:\/\/www.nature.com\/articles\/nature01336\" rel=\"nofollow noopener noreferrer\">Nature<\/a> (<a href=\"https:\/\/sci-hub.st\/10.1038\/nature01336\" rel=\"nofollow noopener noreferrer\">sci-hub<\/a>) \u0438\u043b\u0438\u00a0 quantum dots <a href=\"https:\/\/journals.aps.org\/prb\/abstract\/10.1103\/PhysRevB.69.161303\" rel=\"nofollow noopener noreferrer\">PhysRev<\/a>\u00a0 (<a href=\"https:\/\/sci-hub.se\/10.1103\/physrevb.69.161303\" rel=\"nofollow noopener noreferrer\">sci-hub<\/a>).<\/p>\n<p>  <\/p>\n<p>The task is to determine whether a certain function is balanced or not. A balanced function is a function that returns f(x)=x or f(x)=not(x); the function is unbalanced if f(x)=0 or f(x)=1. A classical computer will need 2 operations to iterate through x=0 and x=1.<\/p>\n<p>  <\/p>\n<p>The QC can do this in one operation. To do this, we perform actions with a superposition of \u00bd(|0>+|1>), that is, simultaneously with x=0 and x=1.<\/p>\n<p>  <\/p>\n<p>The QC can do this in one operation. To do this, we perform actions with a superposition of \u00bd(|0>+|1>), that is, simultaneously with x=0 and x=1.<\/p>\n<p>  <\/p>\n<p>Briefly the idea is the following. We make 4 black boxes, inside of which there is an implementation of 4 variants of the function for f(x): a) f(x)=0, b) f(x)=1, c) f(x)=x, d) f(x)=not(x). The first two are unbalanced, and the last two are balanced. These black boxes perform the operation y\u2295f(x), where x is the state of the first qubit and y is the state of the second qubit, and \u2295 denotes the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Controlled_NOT_gate\" rel=\"nofollow noopener noreferrer\">CNOT<\/a> operation between two qubits.<\/p>\n<p>  Here is <a href=\"https:\/\/www.cl.cam.ac.uk\/teaching\/1920\/QuantComp\/Quantum_Computing_Lecture_7.pdf\" rel=\"nofollow noopener noreferrer\">the implementation<\/a> of these black boxes:  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/2s\/al\/wb\/2salwbjtdtbdyygzfxuarjrwrnq.png\" width=\"563\" data-src=\"https:\/\/habrastorage.org\/webt\/2s\/al\/wb\/2salwbjtdtbdyygzfxuarjrwrnq.png\"\/><\/div>\n<p>  <em>Fig. 18.\u00a0The implementation of black boxes for 4 types of functions <a href=\"https:\/\/www.cl.cam.ac.uk\/teaching\/1920\/QuantComp\/Quantum_Computing_Lecture_7.pdf\" rel=\"nofollow noopener noreferrer\">(see)<\/a><\/em><br \/>  \u00a0<br \/>  Then we insert these black boxes into some system of 2 qubits and immediately get that the boxes with functions c) and d) return the result |1>, and a) and b) return the result |0>. The problem is solved.  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ws\/et\/k4\/wsetk4j1-8ya9lzijbrduyqznku.png\" width=\"424\" data-src=\"https:\/\/habrastorage.org\/webt\/ws\/et\/k4\/wsetk4j1-8ya9lzijbrduyqznku.png\"\/><\/div>\n<p>  \u00a0<br \/>  <em>Fig. 19 Implementation of the Deutsch algorithm, Oracle Uf contains black boxes with the implementation of the function y\u2295f(x). H is a Hadamard gate, see below.<br \/>  <\/em><br \/>  \u00a0<br \/>  Apart from the usual mathematics in such cases, the essence boils down to the following:<\/p>\n<p>  Let there be 2 qubits.<\/p>\n<p>  The 1st qubit is in the state 1\/\u221a2(|0>+|1>). The 2nd qubit is in the state 1\/\u221a2(0>-|1>).<\/p>\n<p>  If we perform a CNOT operation between qubit 0 and 1, the state of qubit 0 will <a href=\"https:\/\/en.wikipedia.org\/wiki\/Controlled_NOT_gate\" rel=\"nofollow noopener noreferrer\">change the phase to \u03c0<\/a>.  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/u_\/c9\/eu\/u_c9eupouhvls01ahopl4ug8e38.png\" width=\"600\" data-src=\"https:\/\/habrastorage.org\/webt\/u_\/c9\/eu\/u_c9eupouhvls01ahopl4ug8e38.png\"\/><\/div>\n<p>  <em>\u0420\u0438\u0441. 20 If qubit 1 is in the state 1\/\u221a2(0>-|1>), then CNOT (0,1) leads to a phase change of qubit 0 by 180 degrees.<\/em><br \/>  \u00a0<br \/>  And then we can easily determine whether there was a phase rotation or not by applying the H operator.<\/p>\n<p>  The H (Hadamard gate) operator corresponds to rotation around the axis [1 0 1]. For a number of reasons, it is very convenient, for example, double application of this operator leads to the initial state.<\/p>\n<p>  If the phase has not changed and the state remains <em>1\/\u221a2(<\/em>|0>+|1>), then using Hadamard gate will bring the system to the |0>, state. If the phase has changed to \u03c0 and the state has become<br \/>  <em>1\/\u221a2(<\/em>|0>-|1>), then applying H will bring the system to the state |1>,  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/xg\/xs\/ey\/xgxseycbpubde4fyp8ymdzmw0mu.png\" width=\"600\" data-src=\"https:\/\/habrastorage.org\/webt\/xg\/xs\/ey\/xgxseycbpubde4fyp8ymdzmw0mu.png\"\/><\/div>\n<p>  <em>Fig. 21 a) H gate applied to 1\/\u221a2(|0>+|1>) brings the qubit to the |0> state, b) H gate applied to 1\/\u221a2(|0>-|1>) brings the qubit to the |1> state<\/em><br \/>  \u00a0<br \/>  So, we need black boxes with unbalanced functions not to change the phase, but balanced ones to make a 180 phase shift. Then after H, the unbalanced functions that did not touch |x> will give the result |0>, and the balanced functions that used |x> and changed its phase to 180<sup>\u043e<\/sup> will give the result |1>.<\/p>\n<p>  This is the hidden trick of this algorithm: the implementation of unbalanced black boxes is that the state of qubit 0 is not used at all, since the function f(x) is just a constant, and both balanced functions require CNOT that change the phase of qubit 0 (see Fig. 20). And then, respectively, leads to |1> after H gate. As soon as the state |x> is involved, interaction with the second qubit changes |x>, which we detect.<\/p>\n<p>  At the same time, we are not at all interested in what happens to qubit 1, and a useful result is a change in the state of the original variable x (qubit 0).<\/p>\n<h2>Modified algorithm for our mechanical QC.<\/h2>\n<p>  Earlier, we demonstrated the iSWAP<sup>2<\/sup> gate for our two mechanical qubits. Perhaps we can find a way to link our 2 mechanical qubits so that the CNOT gate is implemented. However, we can solve the problem of determining if the function balanced even with our iSWAP<sup>2<\/sup>.<br \/>  Following the logic of the Deutsch algorithm, we will build black boxes for 4 types of functions, similar to Fig. 18.  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/9e\/30\/y5\/9e30y5cc6uqih-fvgj0cg_y72py.png\" data-src=\"https:\/\/habrastorage.org\/webt\/9e\/30\/y5\/9e30y5cc6uqih-fvgj0cg_y72py.png\"\/><\/div>\n<p>  <em>Fig. 22.Implementation of black boxes for the modified Deutsch algorithm. a) and b) correspond to the unbalanced functions f(x)=0 and f(x)=1, and c) and d) balanced f(x)=x and f(x)=not(x).<\/em><br \/>  \u00a0<br \/>  If we ignore small details, such as the reversibility of calculations, we can use X gates instead of H gates and then we have everything to implement this algorithm for our 2-qubit mechanical quantum computer.  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ty\/8q\/oe\/ty8qoe0wxikllc5h-n1cv-jbz8s.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ty\/8q\/oe\/ty8qoe0wxikllc5h-n1cv-jbz8s.png\"\/><\/div>\n<p>  <em>Fig.23. Implementation of the iSWAP<sup>2<\/sup> algorithm.<\/em><br \/>  \u00a0<br \/>  For example, let&#8217;s consider the step-by-step execution of the algorithm for 2 cases: c) f(x)=x and a) f(x)=0 (fig. 23)  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/f7\/y_\/q-\/f7y_q-acszsv6jychg7ymtqge0o.png\" width=\"660\" data-src=\"https:\/\/habrastorage.org\/webt\/f7\/y_\/q-\/f7y_q-acszsv6jychg7ymtqge0o.png\"\/><\/div>\n<p>  <em>Fig. 24. The sequence of execution of the algorithm for f(x)=x. The result is |1>, the function is balanced.<\/em>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qm\/vd\/mi\/qmvdmifrj6sb5sk5adtwlzykljg.png\" width=\"660\" data-src=\"https:\/\/habrastorage.org\/webt\/qm\/vd\/mi\/qmvdmifrj6sb5sk5adtwlzykljg.png\"\/><\/div>\n<p>  <em>Fig. 25. The sequence of execution of the algorithm for f(x)=0. The result is |0>, the function is unbalanced<\/em><br \/>  \u00a0<br \/>  And we can do it on our mechanical computer.<br \/>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/6650d1eaee68229db635899b\" data-style=\"\" id=\"6650d1eaee68229db635899b\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig. 26. Experiment with a balanced function corresponding to Fig. 6 \u00a9 and Fig. 8. X<sup>1\/2<\/sup> at the 1st second and 25th second indicates the excitation by (\u03c0\/2)<sub>x<\/sub> pulse, as in Fig.8 and Fig.11. iSWAP<sup>2<\/sup> experimentally corresponds to the connection of pendulums with a spring (as in Fig.14) at the 10th second.<\/em><br \/>  \u00a0  <\/p>\n<div class=\"oembed\">\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/6650d359315cc3d4a11ad65c\" data-style=\"\" id=\"6650d359315cc3d4a11ad65c\" width=\"\"><\/div>\n<\/div>\n<p>  <em>Fig. 27. Experiment with an unbalanced function corresponding to Fig. 6 (a) and Fig. 9. X<sup>1\/2<\/sup> for the 1st second and 25th second indicates the excitation by (\u03c0\/2)<sub>x<\/sub> pulse, as in Fig.8 and Fig.11. X<sup>3\/2<\/sup> indicates excitation by a pulse of 3*\u03c0\/2 duration at the 10th second.<\/em><br \/>  \u00a0<br \/>  The task of balanced function detection is very simple, it can be easily solved in one step with many analog systems. Nevertheless, we have formally demonstrated that our mechanical quantum computer can perform operations often used to demonstrate the operation of \u201creal\u201d quantum computers.<\/p>\n<h2>Summary<\/h2>\n<p>  <\/p>\n<p>We have shown that many basic properties of quantum computers can be reproduced on a mechanical classical system and even performed some algorithm that is often used to demonstrate quantum QC.<\/p>\n<p>  I tried to demonstrate the basic properties of CC as simply as possible, and explain how they work.<\/p>\n<p>  In fact, QC are universal analog computers, there are many tasks that can be solved very effectively with analog computers. Although, in general, there are no big breakthroughs here yet and, in my opinion, they are not expected.<br \/>  <em><sub><a href=\"http:\/\/mshtools.atwebpages.com\" rel=\"nofollow noopener noreferrer\">see more http:\/\/mshtools.atwebpages.com<\/a><\/sub><\/em><\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/823722\/\"> https:\/\/habr.com\/ru\/articles\/823722\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>Quantum computers have gradually migrated from \u201cnatural\u201d quantum objects like ions and quantum dots to \u201cartificial\u201d objects like transmons, where natural frequencies of LC circuit mimic energy levels. Coaxial cables attached to such circuits excite the system, read their state, and adjust their properties. They are still quantum objects and operate at low temperatures.<\/p>\n<p>  <\/p>\n<p>I wondered if a similar system can be built with large \u201cclassical\u201d mechanical objects. Here I demonstrate 2 -qubit quantum computer built of coupled pendulums.<\/p>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-379780","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/379780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=379780"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/379780\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=379780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=379780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=379780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}