Skip to content

liviakong/sum-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions for using the FlaSR package

Please follow our guide to ensure your computer is properly configured to run Python code from Mathematica. This only needs to be done the first time you run the package.

  1. Download FlaSR.m and FlaSR.py and place both files into the same directory as your Mathematica notebook.

  2. Import the Mathematica package (note: the ` in the string is necessary):

    SetDirectory[NotebookDirectory[]];
    Needs["FlaSR`"];
    
  3. This Mathematica package uses Python code from the FlaSR.py file to expedite calculations. In your Mathematica notebook, start an external session to execute Python code, and define the path to the FlaSR.py Python file:

    session = StartExternalSession["Python"];
    path = "FlaSR.py";
    
  4. Load the Python file:

    startPythonSession[session,path];
    
  5. Generate the amplitude sum rules for a U-spin system. For example, a system with representations u = 0 in the in state, u = 1 in the Hamiltonian, and u = 1/2 and u = 1/2 in the out state is called as

    system = generateASRs[{0},{1},{1/2,1/2}];
    
  6. View a detailed output of the system's representations, amplitudes, and amplitude sum rules:

    printSystem[system,{1,"n-tuples",a,s}];
    

Help

To view the complete list of functions and variables in this package, type in

?FlaSR`*

For details on a function's arguments, options, and outputs, run

FlaSRHelp[function];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published