Python Forum
Unable to use Pauli Matrices in QNET Package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to use Pauli Matrices in QNET Package
#1
Hello everyone, I work with simulation softwares like QNET and Qutip which are based on Python. I am trying to use QNET Package in my project. In this project there is a module 'qnet.algebra.library.pauli_matrices module' to use pauli matrices (QM). But when I import it, module not found error comes up. I have tried install and reinstall it several times but same problem persist. Below is the detailed description of the problem.

Description

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'
Reply
#2
What are running Python(python.org) or Anaconda/Miniconda.
Now i guess you try to run from a Jupyter notebook bye your ipykernel_20216 in error message.
You should try to get it to work from command line first,so this i guess this is installation you have run?
Reply
#3
(Sep-24-2021, 02:55 PM)snippsat Wrote: What are running Python(python.org) or Anaconda/Miniconda.
Now i guess you try to run from a Jupyter notebook bye your ipykernel_20216 in error message.
You should try to get it to work from command line first,so this i guess this is installation you have run?

Yes you are right that, I am using Jupyter notebook. I am using pip to install packages from the command line. No, I am not using Anaconda/Miniconda. Yes, I have used the installation guide that you mentioned. I could not understand what do you mean by to get it work from the command line.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  MPEG DASH Package implementation similar to M3U8 package anantha_narayanan 1 837 May-05-2025, 08:34 AM
Last Post: pintailscratchy
  4D matrices ali1almakhmari 0 1,256 Jun-13-2022, 09:21 AM
Last Post: ali1almakhmari
  Unable to import sklearn after installing any package ilango 0 1,711 Oct-25-2021, 07:03 AM
Last Post: ilango
  Python: Automated Script to Read Multiple Files in Respective Matrices Robotguy 7 6,253 Jul-03-2020, 01:34 AM
Last Post: bowlofred
  Application of dilute matrices chris_drak 0 1,828 Mar-29-2020, 03:04 PM
Last Post: chris_drak
  Partial "visual" Matching of matrices masteripper 15 7,753 Nov-03-2019, 05:41 PM
Last Post: masteripper
  Flipping matrices problem Qmohankumar0017 10 12,619 Feb-20-2019, 06:47 PM
Last Post: buran
  matrices math problem lokoprof 1 2,862 Aug-27-2018, 07:48 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020