Hi all,

I have been receiving the following import error when executing sympy in a 
Google Colab notebook. 

ImportError Traceback (most recent call last) 
<ipython-input-22-7a57ce630735> <https://localhost:8080/#> in <module>() 
----> 1 from quple import ParameterisedCircuit 
2 # Building a circuit of 4 qubits with a layer of CNOT gates using 
3 # the nearest neighbor interaction graph 
4 circuit = ParameterisedCircuit(n_qubit=4) 
5 circuit.add_entanglement_layer(['CNOT'], 
entangle_strategy=nearest_neighbor)

11 frames
/usr/local/lib/python3.7/dist-packages/sympy/solvers/ode/systems.py 
<https://localhost:8080/#> in <module>() 19 from sympy.sets.sets import 
FiniteSet 
20 from sympy.solvers.deutils import ode_order ---> 
21 from sympy.solvers.solveset import NonlinearError, solveset 
22 from sympy.utilities import default_sort_key 
23 from sympy.utilities.iterables import ordered 

ImportError: cannot import name 'NonlinearError' from 
'sympy.solvers.solveset' 
(/usr/local/lib/python3.7/dist-packages/sympy/solvers/solveset.py) 
--------------------------------------------------------------------------- 
NOTE: If your import is failing due to a missing package, you can manually 
install dependencies using either !pip or !apt. To view examples of 
installing some common dependencies, click the "Open Examples" button 
below. 
---------------------------------------------------------------------------

Any thoughts about the cause of this? Missing dependencies? 

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/90490407-f92f-4fe7-8431-7250c06b502bn%40googlegroups.com.

Reply via email to