<?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=Validate_sym.m</id>
	<title>Validate sym.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=Validate_sym.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Validate_sym.m&amp;action=history"/>
	<updated>2026-12-03T05:40:52Z</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=Validate_sym.m&amp;diff=10302&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=Validate_sym.m&amp;diff=10302&amp;oldid=prev"/>
		<updated>2026-08-30T09:14: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:14, 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-l32&quot; &gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&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;[[symmetry.m]], [[perm_group.m]], [[get_coupling.m]], [[summary_symmetry.m]], [[create.m]], [[report.m]], [[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;[[symmetry.m]], [[perm_group.m]], [[get_coupling.m]], [[summary_symmetry.m]], [[create.m]], [[report.m]], [[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=Validate_sym.m&amp;diff=10157&amp;oldid=prev</id>
		<title>Kuprov: sync with Spinach main f053e432: new page for validate_sym.m</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Validate_sym.m&amp;diff=10157&amp;oldid=prev"/>
		<updated>2026-08-30T08:27:10Z</updated>

		<summary type="html">&lt;p&gt;sync with Spinach main f053e432: new page for validate_sym.m&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:validate_sym.m}} __NOTOC__&lt;br /&gt;
Extended validation of user-declared permutation symmetry. Confirms that the Zeeman, coupling, and giant-spin interactions stored in the spin system object are strictly invariant under every operation of each declared permutation group, so that the irreducible representation projectors built by [[symmetry.m]] correspond to a symmetry that the interactions actually possess. The declared symmetry is a permutation of spin labels, not a spatial rotation; interaction tensors related by a rotation rather than being identical are not accepted. When no symmetry is declared, the function returns without performing any checks.&lt;br /&gt;
&lt;br /&gt;
The function returns immediately when &amp;#039;symmetry&amp;#039; is listed in sys.disable, and also when bas.sym_group is absent or empty. Otherwise it loops over the declared groups. All spins in a group must carry the same isotope, and an error is thrown when they do not. The elements of the group are obtained from [[perm_group.m]] and each of them is extended into a permutation of all spins in the system, acting as the identity outside the group. For every group element and every spin in the group, three tests are performed: the Zeeman matrices of the spin and of its image must coincide, the giant-spin coefficient arrays must have the same number of ranks and coincide rank by rank, and, for every spin in the system, the coupling tensor returned by [[get_coupling.m]] between the spin and that partner must coincide with the one between their images. Agreement is tested with the matrix 2-norm of the difference against the tolerance 2*pi*tols.inter_cutoff, that is, the interaction cutoff tolerance expressed in rad/s. Each failed test raises an error naming the group and the offending spins. When every test passes, a confirmation line is printed through [[report.m]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     validate_sym(spin_system,bas)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     spin_system  - Spinach spin system description object, with the&lt;br /&gt;
                    interaction arrays already processed by create.m&lt;br /&gt;
 &lt;br /&gt;
     bas          - basis specification structure; the fields used&lt;br /&gt;
                    here are bas.sym_group (cell array of group names)&lt;br /&gt;
                    and bas.sym_spins (cell array of spin index vec-&lt;br /&gt;
                    tors), as described in the basis specification&lt;br /&gt;
                    section of the online manual&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     this function returns nothing; it throws a descriptive error when&lt;br /&gt;
     the interaction data does not obey a declared symmetry&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
This is a service function of the Spinach kernel that should not be called directly; it is called by [[symmetry.m]].&lt;br /&gt;
&lt;br /&gt;
The consistency check also requires bas.sym_spins to be present whenever bas.sym_group is given, both to be cell arrays of the same length, and every entry of bas.sym_spins to contain at least two valid spin numbers.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[symmetry.m]], [[perm_group.m]], [[get_coupling.m]], [[summary_symmetry.m]], [[create.m]], [[report.m]], [[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>