<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Ejec2duffing.m</id>
	<title>Ejec2duffing.m - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Ejec2duffing.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Ejec2duffing.m&amp;action=history"/>
	<updated>2026-10-04T05:20:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.15</generator>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Ejec2duffing.m&amp;diff=9874&amp;oldid=prev</id>
		<title>Kuprov: Document new Spinach 2.12 spin-boson functionality (PR 195)</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Ejec2duffing.m&amp;diff=9874&amp;oldid=prev"/>
		<updated>2026-08-06T04:38:09Z</updated>

		<summary type="html">&lt;p&gt;Document new Spinach 2.12 spin-boson functionality (PR 195)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:ejec2duffing.m}} __NOTOC__&lt;br /&gt;
Converts the Josephson and charging energies of a transmon into the Duffing oscillator frequency and anharmonicity expected by the bosonic mode specification interface of [[create.m]], using the asymptotic transmon expressions of Koch ''et al.'' (https://doi.org/10.1103/PhysRevA.76.042319):&lt;br /&gt;
&lt;br /&gt;
     frq=sqrt(8*ej*ec)-ec,     anharm=-ec&lt;br /&gt;
&lt;br /&gt;
Superconducting circuit papers quote transmon parameters as E&amp;lt;sub&amp;gt;J&amp;lt;/sub&amp;gt; and E&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, while ''Spinach'' expects a transition frequency and an anharmonicity; this function is the bridge between the two conventions. The anharmonicity comes out negative, as it should for a physical transmon.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     [frq,anharm]=ejec2duffing(ej,ec)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     ej      - Josephson energies in Hz (energy over the&lt;br /&gt;
               Planck constant), an array of positive&lt;br /&gt;
               real numbers&lt;br /&gt;
 &lt;br /&gt;
     ec      - charging energies in Hz (energy over the&lt;br /&gt;
               Planck constant), an array of positive&lt;br /&gt;
               real numbers of the same size as ej&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     frq     - transition frequencies in Hz, to be placed&lt;br /&gt;
               into inter.modes.frqs&lt;br /&gt;
 &lt;br /&gt;
     anharm  - Duffing anharmonicities in Hz, to be placed&lt;br /&gt;
               into inter.modes.anharms&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
A transmon with E&amp;lt;sub&amp;gt;J&amp;lt;/sub&amp;gt;/h = 20 GHz and E&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;/h = 300 MHz, declared with three energy levels:&lt;br /&gt;
&lt;br /&gt;
     % Transmon parameters from the device paper&lt;br /&gt;
     [frq,anharm]=ejec2duffing(20e9,300e6);&lt;br /&gt;
 &lt;br /&gt;
     % Transmon with three energy levels&lt;br /&gt;
     sys.isotopes={'T3'};&lt;br /&gt;
     inter.modes.frqs={frq};&lt;br /&gt;
     inter.modes.anharms={anharm};&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
# The asymptotic expressions are only accurate deep in the transmon regime ej/ec&amp;gt;&amp;gt;1; a warning is issued when the ratio is smaller than 20.&lt;br /&gt;
# ''Spinach'' warns when a positive anharmonicity is declared for a transmon, because physical transmons have negative anharmonicity.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[create.m]], [[cart2mode.m]], [[kelvin2hz.m]], [[mev2hz.m]], [[Spin system specification]], [[Kernel utilities]]&lt;br /&gt;
&lt;br /&gt;
''Version 2.12, authors: [[Ilya Kuprov]]''&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>