325 questions
1 vote
0 answers
40 views
Triplet vs Singlet state qiskit notation
I am trying to use Numpy Eigensolver with Qiskit to get the exact eigenvalues/states of H2, but I found that the superposition with the plus state is being tagget as singlet and with minus as triplet, ...
2 votes
0 answers
59 views
Qiskit Problem: Why does this not work with COBYLA and how do i optimize it?
I'm doing a small program that is supposed to classify the data of the Wisconsin Breast Cancer database contained in sklearn.datasets using Quantum Neural Networks (specifically EstimatorQNN). I think ...
0 votes
0 answers
17 views
Getting requirements to build wheel did not run successfully for installing qiskit 0.37.2 with python version 3.8.20
I try to install qiskit 0.37.2 with python version 3.8.20 then I get the error. below I attached then ss of error I try to install qiskit 0.37.2 version. how to fix this error. error is mostly related ...
0 votes
0 answers
55 views
I have been trying to use qiskit in my Windows but ModuleNotFoundError: No module named 'qiskit_aer' shows up
I am beginner in Qiskit and have installed the latest version 1.2.4 in my system. For the code i need qiskit_aer module. While i try to install it using pip install qiskit-aer that doesn't work. I ...
0 votes
1 answer
242 views
Getting counts from job.result() PrimitiveResult qiskit 2025
I'm implementing quantum edge detection, and to do so i need to get the counts after running in the real hardware. I am trying to run throught qiskit-ibm-runtime, but the result I obtain is in ...
0 votes
1 answer
51 views
Qiskit v2.0.0 Statevector probabilities_dict throws TypeError: unsupported operand type(s) for -: 'int' and 'qiskit.circuit.Qubit'
It’s my first week coding in Qiskit, so I’m using the latest version v2.0.0, but there seems to be a big overhaul, so I’m struggling with reading the docs and even going to the source code, and ...
0 votes
2 answers
2k views
Import Error: cannot import name 'BaseEstimator' from 'qiskit.primitives'
I'm working on a conda environment This is the versions of my packages: conda list qiskit # packages in environment at /opt/anaconda3/envs/qnn: # # Name Version ...
0 votes
0 answers
63 views
Mapping a classical MPS(Matrix Product State) into a Quantum Cirtuit
I have used pyblock3 to construct MPS (Matrix Product State) and MPO (Matrix Product Operator) and then found the ground state energy with DMRG (like in the code). I tried to save all the MPS ...
2 votes
1 answer
152 views
Qiskit: AttributeError: 'ParameterExpression' object has no attribute 'name' when running Estimator with minimize (Scipy) on IBM Quantum hardware
I am trying to optimize a quantum circuit using scipy.optimize.minimize and Qiskit Runtime's Estimator, running on an IBM Quantum real device. However, I am encountering the following error: ...
-2 votes
2 answers
394 views
Qiskit ImportError
I was trying to import QuantumKernals using the following: from qiskit_machine_learning.kernels import QuantumKernel but i am getting this error: from qiskit_machine_learning.kernels import ...
-1 votes
1 answer
266 views
Installing Qiskit IBM Runtime
I want to try using IBMQ from my local computer using API Token. As the documentation, i already try to install qiskit and qiskit ibm runtime in virtual environment(in my case i use conda). The ...
1 vote
1 answer
183 views
Quantum Circuit not drawing on Colab
So, I tried to simulate this gate on Colab using matplotlib. The histogram is showing at the end, but not the circuit. I have tried out all fixes suggested by ChatGPT such as force inline and ...
1 vote
1 answer
76 views
Kernel crashing on IterativeAmplitudeEstimation in qiskit
I have run this code on local computer, collab, and Kaggle and everywhere the kernel does on running below line sof code. Could anyone help where and how can I run this code: epsilon = 0.01 alpha = 0....
0 votes
0 answers
57 views
"SSL: CERTIFICATE_VERIFY_FAILED" for QiskitRuntimeService function
I am trying to execute one simple Quantum gate (to put a qbit in superposition state). I am able to simulate it in my local PC with AET modules. But when trying to execute same on quantum resource, I ...
0 votes
1 answer
218 views
How to change the noise properties of a qiskit noise model?
My goal is to create a noise model that has errors proportional to those of a fake backend. For example a backend where every error strength is 10% of what it is in FakeManila. I have extracted a ...