记一次大模型测试,吓我一跳
·
先上图,直接看:C知道-开发者的首选AI搜索引擎

我提问的问题是:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from qiskit import Aer, QuantumCircuit, execute
3 # 创建量子电路实例
4 qc = QuantumCircuit(2)
File /opt/conda/lib/python3.11/site-packages/qiskit/__init__.py:38
36 _suppress_error = os.environ.get("QISKIT_SUPPRESS_1_0_IMPORT_ERROR", False) == "1"
37 if int(_major) > 0 and not _suppress_error:
---> 38 raise ImportError(
39 "Qiskit is installed in an invalid environment that has both Qiskit >=1.0"
40 " and an earlier version."
41 " You should create a new virtual environment, and ensure that you do not mix"
42 " dependencies between Qiskit <1.0 and >=1.0."
43 " Any packages that depend on 'qiskit-terra' are not compatible with Qiskit 1.0 and"
44 " will need to be updated."
45 " Qiskit unfortunately cannot enforce this requirement during environment resolution."
46 " See https://qisk.it/packaging-1-0 for more detail."
47 )
49 import qiskit._accelerate
50 import qiskit._numpy_compat
ImportError: Qiskit is installed in an invalid environment that has both Qiskit >=1.0 and an earlier version. You should create a new virtual environment, and ensure that you do not mix dependencies between Qiskit <1.0 and >=1.0. Any packages that depend on 'qiskit-terra' are not compatible with Qiskit 1.0 and will need to be updated. Qiskit unfortunately cannot enforce this requirement during environment resolution. See https://qisk.it/packaging-1-0 for more detail.
更多推荐



所有评论(0)