It seems you are using the ITensor.jl
library. This is a pretty great library, but it is not something that is in base Julia, it is one of many packages implemented in Julia that one needs to install in additional the the language itself. I assume you have already taken care of the installation of the base language and of this library.
Please check out this post for some pointers on how to make it easier for others to answer your question: Please read: make it easier to help you
One thing that would help is to format your code so that it is easy to read for others (using the backtick markdown notation as described in that post).
If I am getting your question correctly, you already can build various states and operators, but you are asking what are following best practices? Or are you stuck and do not really know yet how to start constructing these objects? Could post the complete code of what you have tried and explain why you are not satisfied with it or what is missing in it?