<?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=Pulsed_field.m</id>
	<title>Pulsed field.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=Pulsed_field.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Pulsed_field.m&amp;action=history"/>
	<updated>2026-12-05T06:10:58Z</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=Pulsed_field.m&amp;diff=10356&amp;oldid=prev</id>
		<title>Kuprov: New function page for pulsed_field.m (Spinach 2.13), carried over from the source header</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Pulsed_field.m&amp;diff=10356&amp;oldid=prev"/>
		<updated>2026-09-22T15:31:51Z</updated>

		<summary type="html">&lt;p&gt;New function page for pulsed_field.m (Spinach 2.13), carried over from the source header&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:pulsed_field.m}} __NOTOC__&lt;br /&gt;
Magnetisation dynamics under a time-dependent magnetic field along the Z axis of the laboratory frame with spin-phonon relaxation, as measured in pulsed-field magnetometry of molecular magnets. The field profile is replaced by a staircase; on each stair the Hamiltonian is constant, the spin-phonon dissipator is rebuilt in the eigenbasis of that Hamiltonian, and the density matrix is propagated in that eigenbasis by a symmetric split: exact coherent phases for half a stair, the dissipative step to second order in the dissipator times the stair width, and the phases again. The dissipator times the stair width must be small; the coherent part is treated exactly for any stair width. The dissipator is applied as Hilbert space matrix products (see [[rlx_phonon.m]]), so the cost of a stair is cubic in the dimension of the Hilbert space.&lt;br /&gt;
&lt;br /&gt;
The function removes the unit-field Zeeman term from the Hamiltonian received from the context, starts from the thermal equilibrium state of the field-free Hamiltonian, and on every stair evaluates the field profile at the stair midpoint, diagonalises the stair Hamiltonian, obtains the dressed coupling operator from [[rlx_phonon.m]] in that eigenbasis, and records the expectation values of the coil operators every parameters.nout stairs.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
         answer=pulsed_field(spin_system,parameters,H,R,K)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
    parameters.field_prof - function handle returning the field&lt;br /&gt;
                            in Tesla at a time in seconds&lt;br /&gt;
&lt;br /&gt;
    parameters.hzeeman    - Zeeman operator per Tesla, rad/s/T,&lt;br /&gt;
                            Hilbert space, supplied by the con-&lt;br /&gt;
                            text when &amp;#039;zeeman_op&amp;#039; is requested&lt;br /&gt;
                            in parameters.needs&lt;br /&gt;
&lt;br /&gt;
    parameters.timestep   - stair width, seconds&lt;br /&gt;
&lt;br /&gt;
    parameters.nsteps     - number of stairs&lt;br /&gt;
&lt;br /&gt;
    parameters.coil       - Hermitian Hilbert space observable&lt;br /&gt;
                            operator or a cell array of them&lt;br /&gt;
&lt;br /&gt;
    parameters.phonon_x   - spin-phonon coupling operator, see&lt;br /&gt;
                            rlx_phonon.m&lt;br /&gt;
&lt;br /&gt;
    parameters.phonon_i0  - phonon spectral density prefactor,&lt;br /&gt;
                            see rlx_phonon.m&lt;br /&gt;
&lt;br /&gt;
    parameters.phonon_alpha - phonon spectral density exponent,&lt;br /&gt;
                              1 or above, see rlx_phonon.m&lt;br /&gt;
&lt;br /&gt;
    parameters.nout       - number of stairs between recorded&lt;br /&gt;
                            observable values&lt;br /&gt;
&lt;br /&gt;
    H - Hamiltonian received from the context function, Hilbert&lt;br /&gt;
        space, containing the Zeeman term at sys.magnet=1 Tesla;&lt;br /&gt;
        the function removes that term and adds the field of&lt;br /&gt;
        each stair itself&lt;br /&gt;
&lt;br /&gt;
    R - relaxation superoperator received from the context&lt;br /&gt;
        function; ignored, the spin-phonon dissipator is built&lt;br /&gt;
        here at every stair&lt;br /&gt;
&lt;br /&gt;
    K - kinetics superoperator received from the context&lt;br /&gt;
        function; ignored&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
    answer.t     - column of recording times, seconds&lt;br /&gt;
&lt;br /&gt;
    answer.field - column of field values at those times, Tesla&lt;br /&gt;
&lt;br /&gt;
    answer.obs   - matrix of observable expectation values, one&lt;br /&gt;
                   column per coil, at the recording times&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
See the pulsed-field magnetometry case studies in the examples/giant_spin/case_studies/ho_twelfth_rank directory: a J=8 holmium giant spin under linear, piecewise linear, spline, and sinusoidal field profiles, its powder average, a dimer with four exchange coupling tensor types, and a manganese trimer in effective bases, all with thermal equilibrium curves for comparison.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
The sequence works in zeeman-hilb formalism under the crystal and powder contexts, which assemble the anisotropic part of the Hamiltonian; the liquid context drops that part, and with it the crystal field of a giant spin. The context must be called with the labframe assumption set, so that H and the Zeeman operator are built consistently; the powder context must be called with parameters.sum_up=false because the answer is a structure; additional rotating frames (parameters.rframes) and frequency offsets (parameters.offset) are not supported because the field operator is added in the laboratory frame. The temperature of the phonon bath is inter.temperature.&lt;br /&gt;
&lt;br /&gt;
sys.magnet must be 1 Tesla, so that parameters.hzeeman is the Zeeman operator per Tesla; the Hamiltonian received from the context then contains the Zeeman term at 1 Tesla, which this function removes before adding the field on each stair. The initial state is the thermal equilibrium of the field-free Hamiltonian at the temperature of the phonon bath.&lt;br /&gt;
&lt;br /&gt;
The Hamiltonian on each stair uses the field at the midpoint of the stair; answer.field is the profile evaluated at the recording times, which are the ends of the recorded stairs.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[rlx_phonon.m]], [[crystal.m]], [[powder.m]], [[fieldscan_magn.m]], [[stevens.m]], [[stev2sph.m]], [[equilibrium.m]], [[Built-in_experiments]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.13, authors: [[Ilya Kuprov]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>