Difference between revisions of "Singlet.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Restore pre-bulk-edit wiki content)
Line 1: Line 1:
−
{{DISPLAYTITLE:singlet.m}} __NOTOC__
+
{{DISPLAYTITLE:singlet.m}}
−
 
 
 
Returns a two-spin singlet state.
 
Returns a two-spin singlet state.
  
 
==Syntax==
 
==Syntax==
  
−
S=singlet(spin_system,spin_a,spin_b)
+
    rho=singlet(spin_system,spin_a,spin_b)
  
 
==Arguments==
 
==Arguments==
  
−
spin_a  - the number of the first spin in the  
+
  spin_a  - the number of the first spin in the  
 
             singlet state
 
             singlet state
 
   
 
   
Line 17: Line 16:
 
==Outputs==
 
==Outputs==
  
−
S      - a density matrix (Hilbert space) or
+
  rho    - a density matrix (Hilbert space) or
−
             a state vector (Liouville space)
+
             a state vector (Liouville space)  
−
 
 
−
ilya.kuprov@weizmann.ac.il
 
  
 
==See also==
 
==See also==
−
 
 
[[state.m]], [[operator.m]], [[equilibrium.m]]
 
[[state.m]], [[operator.m]], [[equilibrium.m]]
  
  
 
''Version 2.2, authors: [[Ilya Kuprov]]''
 
''Version 2.2, authors: [[Ilya Kuprov]]''

Revision as of 14:50, 5 April 2026

Returns a two-spin singlet state.

Syntax

    rho=singlet(spin_system,spin_a,spin_b)

Arguments

  spin_a  - the number of the first spin in the 
            singlet state

  spin_b  - the number of the second spin in the 
            singlet state

Outputs

  rho     - a density matrix (Hilbert space) or
            a state vector (Liouville space) 

See also

state.m, operator.m, equilibrium.m


Version 2.2, authors: Ilya Kuprov