<?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=Sim2liouv.m</id>
	<title>Sim2liouv.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=Sim2liouv.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Sim2liouv.m&amp;action=history"/>
	<updated>2026-12-04T22:19:14Z</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=Sim2liouv.m&amp;diff=10282&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=Sim2liouv.m&amp;diff=10282&amp;oldid=prev"/>
		<updated>2026-08-30T09:13:06Z</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:13, 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-l49&quot; &gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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;[[hilb2liouv.m]], [[reduce.m]], [[sphten2zeeman.m]], [[Basis set specification]], [[Kernel utilities]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;[[hilb2liouv.m]], [[reduce.m]], [[sphten2zeeman.m]], [[Basis set specification]], [[Kernel utilities]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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;&amp;#039;&amp;#039;Version 2.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/del&gt;, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&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;&amp;#039;&amp;#039;Version 2.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;13&lt;/ins&gt;, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&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=Sim2liouv.m&amp;diff=10144&amp;oldid=prev</id>
		<title>Kuprov: sync with Spinach main f053e432: new page for sim2liouv.m created from the source header and implementation</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Sim2liouv.m&amp;diff=10144&amp;oldid=prev"/>
		<updated>2026-08-30T08:21:48Z</updated>

		<summary type="html">&lt;p&gt;sync with Spinach main f053e432: new page for sim2liouv.m created from the source header and implementation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:sim2liouv.m}} __NOTOC__&lt;br /&gt;
Moves a zeeman-hilb simulation context into Liouville space. When the formalism specified in the spin system object is &amp;#039;zeeman-hilb&amp;#039;, this function projects the evolution generators into Liouville space, converts the standard state-like and operator-like fields of the parameters structure, rebuilds the basis index table, migrates the symmetry irrep projectors into the adjoint representation, and sets the formalism to &amp;#039;zeeman-liouv&amp;#039;; for all other formalisms, every argument is returned unchanged. This makes Liouville-space pulse sequences callable with zeeman-hilb inputs.&lt;br /&gt;
&lt;br /&gt;
The generators are projected with [[hilb2liouv.m]]: H into a commutation superoperator, R and K into anticommutation superoperators. The state-like fields rho0, coil, and screen are reshaped into columns of length hdim^2, where hdim is the number of rows of the Hilbert space basis table, and the operator-like fields pulse_op, mw_oper, and ez_oper are turned into commutation superoperators; each field is touched only if it is present. The Liouville space basis table is assembled as [repmat(zbas,[hdim 1]) kron(zbas,ones(hdim,1))] from the Hilbert space table zbas. If spin_system.bas.irrep is present, every ordered pair (n,k) of Hilbert space irreps produces a Liouville space irrep with projector kron(conj(S(n)),S(k)) and dimension equal to the product of the two Hilbert space dimensions, giving n_irreps^2 subspaces, and the count is reported to the user.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     [spin_system,parameters,H,R,K]=...&lt;br /&gt;
     sim2liouv(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     spin_system  - Spinach spin system object&lt;br /&gt;
 &lt;br /&gt;
     parameters   - pulse sequence parameters structure; the&lt;br /&gt;
                    state-like fields rho0, coil, and screen&lt;br /&gt;
                    (matrices or their horizontal concatena-&lt;br /&gt;
                    tions) are stretched into state vectors,&lt;br /&gt;
                    and the operator-like fields pulse_op,&lt;br /&gt;
                    mw_oper, and ez_oper are converted into&lt;br /&gt;
                    commutation superoperators, when present&lt;br /&gt;
 &lt;br /&gt;
     H            - Hamiltonian operator, converted into a&lt;br /&gt;
                    commutation superoperator; an empty&lt;br /&gt;
                    matrix is passed through&lt;br /&gt;
 &lt;br /&gt;
     R            - relaxation matrix, converted into an&lt;br /&gt;
                    anticommutation superoperator; an empty&lt;br /&gt;
                    matrix is passed through&lt;br /&gt;
 &lt;br /&gt;
     K            - kinetics matrix, converted into an&lt;br /&gt;
                    anticommutation superoperator; an empty&lt;br /&gt;
                    matrix is passed through&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     spin_system  - spin system object with zeeman-liouv&lt;br /&gt;
                    formalism and basis information&lt;br /&gt;
 &lt;br /&gt;
     parameters   - parameters structure with the standard&lt;br /&gt;
                    fields converted into Liouville space&lt;br /&gt;
 &lt;br /&gt;
     H,R,K        - Liouville space evolution generators&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
A Hilbert space density matrix block S(n)*Y*S(k)&amp;#039; maps to the state vector kron(conj(S(k)),S(n))*Y(:), and so each ordered pair of Hilbert space irrep projectors yields the Liouville space irrep projector kron(conj(S(k)),S(n)). Every such subspace is invariant under superoperators built from symmetry-respecting Hilbert space generators; unpopulated subspaces are dropped by [[reduce.m]] at run time in the usual way.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[hilb2liouv.m]], [[reduce.m]], [[sphten2zeeman.m]], [[Basis set specification]], [[Kernel utilities]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.11, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>