############################################################### # # QULIB INSTALLATION INSTRUCTIONS # ############################################################### To install qulib, download the .m file and save it somewhere you remember. Then open Mathematica and type $UserBaseDirectory. This should print out a directory such as "/Users/gtlandi/Library/Mathematica". Go to this directory and, in the sub-folder "Kernel" open the file init.m. In this file you can put any command that you want to evaluate every time Mathematica is initialized. - If you want to initialize qulib automatically every time then copy the following command: Quiet[Needs["qulib`", "/home/user/filder/qulib.m"]] where the director /home/user etc. means the path directory where your qulib file is saved. If you don't know how to write that, create and save an empty notebook on the same folder and then type NotebookDirectory[]. This will print out the correct directory. - If you don't want to initialize qulib every time you can copy into init.m the command loadQulib[]:=Quiet[Needs["qulib`", "/home/user/qulib.m"]] Then, when you want to load qulib, just type loadQulib[] in any notebook. - Finally, there is also an option to load qulib by downloading it from the internet every time. The idea is to have a command-line which evaluates qulib by downloading it from the internet. This has the advantage that you are always up-to-date. But the disadvantage is that you need to be online every time you want to use qulib. The command is NotebookEvaluate["http://fmt.if.usp.br/~gtlandi/qulib.m"] We have found that this approach may be buggy on Mac.