Technical requirements
The source code for this chapter is available in the following GitHub repository:
The concepts of vectors, orthogonality, identity matrix, matrix multiplication, tensor product, and the equations shown in this chapter come from linear algebra and trigonometry, so it might be helpful to review those concepts as needed. There are several excellent books on this subject and two are included in the Further reading section if you wish to dive deeper into the mathematics of quantum computing.