<?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=Bss_ops.m</id>
	<title>Bss ops.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=Bss_ops.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Bss_ops.m&amp;action=history"/>
	<updated>2026-10-02T18:52:12Z</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=Bss_ops.m&amp;diff=10173&amp;oldid=prev</id>
		<title>Kuprov: version fragment to 2.13 per IK 2026-08-30</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Bss_ops.m&amp;diff=10173&amp;oldid=prev"/>
		<updated>2026-08-30T09:10:29Z</updated>

		<summary type="html">&lt;p&gt;version fragment to 2.13 per IK 2026-08-30&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:10, 30 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot; &gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bloch_siegert.m]], [[optimcon.m]], [[operator.m]], [[mprealloc.m]], [[Optimal control module]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bloch_siegert.m]], [[optimcon.m]], [[operator.m]], [[mprealloc.m]], [[Optimal control module]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''Version 2.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/del&gt;, authors: [[Ilya Kuprov]]''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''Version 2.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;13&lt;/ins&gt;, authors: [[Ilya Kuprov]]''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Bss_ops.m&amp;diff=10065&amp;oldid=prev</id>
		<title>Kuprov: sync with Spinach main f053e432: new page for the Bloch-Siegert response operator function</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Bss_ops.m&amp;diff=10065&amp;oldid=prev"/>
		<updated>2026-08-30T07:49:45Z</updated>

		<summary type="html">&lt;p&gt;sync with Spinach main f053e432: new page for the Bloch-Siegert response operator function&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:bss_ops.m}} __NOTOC__&lt;br /&gt;
Bloch-Siegert response operators for the optimal control module. For each control channel, returns the operator whose coefficient in every time slice of a GRAPE optimisation is the square of the physical control amplitude on that channel. The operator collects the second-order Bloch-Siegert frequency shifts of every spin in the system:&lt;br /&gt;
&lt;br /&gt;
     B=sum_n (gamma_n/gamma_c)^2*[1/(2*(omega_n+omega_c))&lt;br /&gt;
           +(foreign isotopes only) 1/(2*(omega_n-omega_c))]*Lz_n&lt;br /&gt;
&lt;br /&gt;
where omega_n are signed laboratory frame Zeeman frequencies from spin_system.inter.basefrqs and omega_c is the signed carrier frequency of the channel. Spins belonging to the isotope that the channel addresses receive only the never-resonant term because their resonant term is the control operator itself, which GRAPE propagates exactly. Foreign isotopes receive both terms, which sum into the Ramsey shift omega_n*omega_1n^2/(omega_n^2-omega_c^2).&lt;br /&gt;
&lt;br /&gt;
Non-spin particles, that is, those whose entry in spin_system.comp.types is not 'S', are skipped. The longitudinal operators are built with [[operator.m]] and accumulated into a preallocation from [[mprealloc.m]]; the result is stored without a [[clean_up.m]] call because the matrix elements scale as inverse Zeeman frequencies and are legitimately small. The consistency check rejects a zero carrier frequency and any channel for which an omega_n+omega_c or, for foreign isotopes, an omega_n-omega_c denominator is degenerate to within one part in a million of the carrier frequency.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     resp_ops=bss_ops(spin_system,channels,carrier_frq)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     channels     - cell array of isotope strings, one per&lt;br /&gt;
                    control operator, e.g. {'1H','1H'} for&lt;br /&gt;
                    an X,Y control operator pair&lt;br /&gt;
 &lt;br /&gt;
     carrier_frq  - row vector of signed carrier frequencies&lt;br /&gt;
                    (rad/s), one per control operator; for a&lt;br /&gt;
                    transmitter on resonance this is the value&lt;br /&gt;
                    of inter.basefrqs for the channel isotope&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     resp_ops     - cell array of Bloch-Siegert response ope-&lt;br /&gt;
                    rators, one per control operator, in the&lt;br /&gt;
                    formalism of the spin system provided&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[bloch_siegert.m]], [[optimcon.m]], [[operator.m]], [[mprealloc.m]], [[Optimal control module]]&lt;br /&gt;
&lt;br /&gt;
''Version 2.11, authors: [[Ilya Kuprov]]''&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>