Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing can be imported from pyquil, actually nothing can be imported in general ! #220

Open
apassenger opened this issue Feb 1, 2022 · 0 comments

Comments

@apassenger
Copy link

apassenger commented Feb 1, 2022

I am trying to run chi2kraus function, but I can't import pyquil.gate_matrices, it says No module named pyquil.gate_matrices. I installed pyquil and I can import pyquil,gates..

The same thing happens when I try to import operator tools and no module names forest.benchmarking.operator_tools


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
/tmp/ipykernel_8765/4045591460.py in <module>
      1 from pyquil.gates import I, X, Y, Z, H, CNOT
----> 2 from forest.benchmarking.operator_tools import chi2kraus
      3 #import forest.benchmarking.operator_tools.superoperator_transformations.chi2kraus as chi2k
      4 chi2kraus(exp_idt)

~/forest-benchmarking/forest/benchmarking/operator_tools/__init__.py in <module>
      2 from .channel_approximation import *
      3 from .compose_superoperators import *
----> 4 from .project_superoperators import *
      5 from .superoperator_transformations import *
      6 from .random_operators import *

~/forest-benchmarking/forest/benchmarking/operator_tools/project_superoperators.py in <module>
     14 from scipy import linalg
     15 from forest.benchmarking.operator_tools.calculational import partial_trace
---> 16 from forest.benchmarking.operator_tools.superoperator_transformations import vec, unvec, kraus2choi
     17 
     18 

~/forest-benchmarking/forest/benchmarking/operator_tools/superoperator_transformations.py in <module>
     28 from typing import Sequence, Tuple, List, Optional
     29 import numpy as np
---> 30 from forest.benchmarking.utils import n_qubit_pauli_basis
     31 
     32 

~/forest-benchmarking/forest/benchmarking/utils.py in <module>
     10 
     11 from pyquil.gates import I, RX, RY, RZ, H, MEASURE
---> 12 from pyquil.gate_matrices import X, Y, Z
     13 from pyquil.paulis import PauliTerm
     14 from pyquil.quil import Program

ModuleNotFoundError: No module named 'pyquil.gate_matrices

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant