Difference between revisions of "Superop.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Spot-update function page against current Spinach source)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
                       A=superop(spin_system,opspec,side)
 
                       A=superop(spin_system,opspec,side)
  
−
==Arguments==
+
==Parameters==
  
 
         opspec - Spinach operator specification described in Sections 2.1
 
         opspec - Spinach operator specification described in Sections 2.1

Revision as of 17:52, 5 June 2026

Sided product superoperator in the spherical tensor basis set. Returns superoperators corresponding to right or left multiplication of a density matrix by a user-specified operator.

Syntax

                     A=superop(spin_system,opspec,side)

Parameters

        opspec - Spinach operator specification described in Sections 2.1
                 and 3.3 of the following paper:
                        http://dx.doi.org/10.1016/j.jmr.2010.11.008
        side   - 'left' or 'right' causes the function to return a product
                 superoperator corresponding to a product from that side;
                 'comm' or 'acomm' results in commutation and anticommuta-
                 tion superoperator respectively.

Outputs

             A - a three-column array of row indices (first column),
                 column indices (second column) and values (third column).

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This is a very general function to which direct calls are not usually required; use the friendlier operator.m function where possible.

The superoperator is returned in XYZ sparse format, which is different from Matlab's CSC sparse format.

See also

Version 2.11, authors: Ilya Kuprov, Hannah Hogben