Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - MalcolmHLevitt

Pages: 1 2 [3] 4 5 ... 7
Bug reports / Re: More of a question: Ordering of Zeeman product states
« on: February 06, 2015, 06:13:51 PM »
OK, I see the problem. A general fix uses this (rather fancy) syntax:

ReorderedKets =
   Sequence @@ Map[BasisKets[ZeemanBasis[{#}]] &, SpinSystem[]]]

I hope to implement this automatically in the next version. To my shame I had not noticed that the ordering of the kets was inconsistent between SpinDynamica and my Spin Dynamics book. Apologies!

a revised notebook is attached


Bug reports / Re: More of a question: Ordering of Zeeman product states
« on: February 06, 2015, 09:10:21 AM »
I expect to implement a built-in way to do this in the next release.


Bug reports / Re: More of a question: Ordering of Zeeman product states
« on: February 05, 2015, 03:26:50 PM »
Hi Andreas,
 there is no built-in way to do this, but the reordering of the basis kets may be accomplished rather easily using SpinPermutationOperator, and a new basis using the reordered kets defined using DefineBasis and used using SetBasis.

In general the permutation has to exchange pairs of spins related by reversing the order, i.e. if the spins are {a, b, c... X, Y, Z} then the appropriate permutation is {{a,Z},{b,Y},{c,X}...}.

An example file is attached. I hope this is clear.


Updates and Messages / SpinDynamica 2.12.1 released
« on: January 28, 2015, 04:48:30 PM »
  • New routine Secularize secularizes operators and superoperators with respect to a general Hamiltonian, with an abbreviated syntax for Zeeman secularization.
  • A Signal object may now be multiplied directly by an complex number, for example to implement phase correction.
  • A new option DigitalFrequencyResolution for Signal1D provides more clarity and flexibility in the handling of time and frequency-domain signals. This is described in the enhanced documentation accompanying this release.
  • Some important bug fixes.
  • extended documentation files now include a section on Signal.

Download here:

Examples / Spin-3/2 dynamics
« on: January 16, 2015, 04:07:33 PM »
A new example file has been posted on
The example file illustrates the spin dynamics of a spin-3/2 system in the presence of weak and strong rf fields. Selective manipulations of the central and satellite transitions are illustrated, including the use of cosine-modulated fields to excite the satellite transitions.

Bug reports / Re: Invalid syntax in SpinDynamica v2.10.1
« on: December 08, 2014, 02:05:34 PM »
This problem has been fixed in SD v2.11.1

Updates and Messages / SpinDynamica 2.11.1
« on: December 08, 2014, 02:03:49 PM »
SpinDynamica 2.11.1 has been released here:

This is a relatively major new release with new functions ProductKet, ProductBra and ProductBasis. See part 3 of the documentation.

Signal1D has been augmented with new functionality allowing direct specification of the number of sampling points and the spectral width. See part 2 of the documentation.

Major speed improvements have been achieved for some calculations.
A variety of minor bugs have been fixed.

Bug reports / Re: Invalid syntax in SpinDynamica v2.10.1
« on: September 29, 2014, 01:45:29 PM »
Thanks Jyrki,
 You're right, the repeated pattern in SpinsOrderedQ[{label_..}] is not parsed by Mathematica, to my surprise.
 I will replace it by the equivalent SpinsOrderedQ[{Repeated[label_]}] in the next release. This does parse correctly, at least in 9.
 I think there is no urgency, since I'm not aware of any real problems being caused by this "Schönheitsfehler" right now.
all the best

Bug reports / Re: Invalid syntax in SpinDynamica v2.10.1
« on: September 26, 2014, 10:20:37 PM »
Hi Jyrki,
 I just saw this bug report, which I had overlooked. However I cannot locate the problem. I encounter no error messages, at least in Mathematica 9. I also do not see an obvious problem with the syntax. Can you clarify please?

Bug reports / Re: opI[].A.opI[] product with SpinDynamica 2.9.1 (and 2.8.3)
« on: September 24, 2014, 10:19:22 PM »
Hi Jyrki, this has been fixed (amongst other things) in SDv2.10.2.

Updates and Messages / SpinDynamica 2.10.2 released
« on: September 24, 2014, 10:16:49 PM »
SpinDynamica 2.10.2 is now available here:

This corrects some nasty misbehaviour which appeared in 2.10.1.

Examples / Quadrupolar echoes for spin-7/2
« on: September 19, 2014, 06:12:33 PM »
The attached notebook shows how to calculate the spectrum of a spin-7/2 nucleus (for example 133Cs) in an oriented medium, such as a gel (see for example P. W. Kuchel, "Quadrupolar Splitting in Stretched Hydrogels," in "eMagRes," Ed. (John Wiley & Sons, Ltd, 2007)). The EnsembleAverage function is used to generated a spread in quadrupolar interactions, corresponding to gel inhomogeneity. A simulation shows that a two-pulse sequence generates a series of quadrupolar echoes with curious fractional timings, as predicted in a very old paper by Solomon (I. Solomon, "Multiple Echoes in Solids," Phys. Rev. 110, 61 (1958)).

Examples / Chemical exchange in an AB system
« on: September 19, 2014, 06:07:01 PM »
The attached notebook shows how to build on SpinDynamica to predict the NMR spectrum of an AB system of two spins-1/2, exchanging between two sites with different chemical shifts and J-couplings. Currently, this case cannot be simulated entirely within SpinDynamica, but the notebook shows how to build on SpinDynamica so as to handle a chemical exchange case. Thanks to Phil Kuchel for stimulating this simulation. Malcolm

ps. I have stripped the graphics from the attached notebook but they will be regenerated when the code is executed.

Hello Jyrki. This bug has been fixed in v2.10.1.
all the best

Updates and Messages / SpinDynamica 2.10.1
« on: August 11, 2014, 04:29:05 PM »
SpinDynamica 2.10.1 has been released. More bug fixes and speed enhancements. Download here:

Pages: 1 2 [3] 4 5 ... 7