Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Draft Forbes Group Website (Build by Nikola). The official site is hosted at:

https://labs.wsu.edu/forbes

5913 views
License: GPL3
ubuntu2004
Kernel: Python 2

Write your post here.

Pauli Spin Matrices

import numpy as np def com(A, B): return A.dot(B) - B.dot(A) sigma = np.array( [[[0, 1], [1, 0]], [[0, -1j], [1j, 0]], [[1, 0], [0, -1]]]) assert np.allclose(com(sigma[0], sigma[1]), 2j*sigma[2]