mabuchilab / QNET

Computer algebra package for quantum mechanics and photonic quantum networks
https://qnet.readthedocs.io/
MIT License
71 stars 23 forks source link

How to use Pauli matrices in QNET? #94

Open rupayan2029 opened 2 years ago

rupayan2029 commented 2 years ago

Description

I like to mention that I am new to QNET and Python. I am trying to use Pauli matrices in my project. In order to do that I tried to import Pauli matrices from the "qnet.algebra.library.pauli_matrices" as mentioned in the QNET API documentation but throws "Module not found error".

What I Did

from qnet. algebra.library import pauli_matrices

ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_20216/2406033966.py in <module>
----> 1 from qnet.algebra.library import pauli_matrices

ModuleNotFoundError: No module named 'qnet.algebra.library'