412 questions
1
vote
0
answers
41
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 ...
1
vote
0
answers
30
views
How can I optimize modular addition in Qiskit for use in post-quantum cryptographic circuits like Kyber or NTRU?
I'm currently working on implementing modular arithmetic operations as part of a post-quantum cryptographic primitive (e.g., Kyber or NTRU) using Qiskit. Specifically, I'm focused on building an ...
0
votes
0
answers
60
views
Using pymatgen to generate QEpy input files from cif document
I would like to use from pymatgen.io.espresso.inputs.pwin import PWin as PWin to generate an input file for Quantum Espresso from a cif file.
I have already read the cif file using pymatgen :
from ...
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
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 ...
0
votes
0
answers
57
views
Parameter Mismatch Between CryptoContext and Public Key When Using Separate Serialization
[languages & Tech Stack: C++, Python, OpenFHE]
I'm encountering an issue when trying to use separate functions (or executables) for key generation and vote encryption. In my workflow, I generate ...
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:
...
0
votes
0
answers
39
views
KLM protocol - NS_{-1} gate in strawberryfields
I'm new to strawberryfields and I'm trying to implement the gate in Fig. 1 of KLM's 2001 paper.
This is my code:
import numpy as np
import strawberryfields as sf
from strawberryfields import ops
from ...
-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
184
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 ...
0
votes
0
answers
38
views
IndexError: too many indices for array in reinforcement learning model using Pennylane and PyTorch
I am working on a quantum reinforcement learning model using PennyLane, PyTorch, and a stock trading environment from finrl library.When I run my training function, I get following error. Any help is ...
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 ...
1
vote
0
answers
49
views
How to Implement HHL for Two Matrices with Dimension Disparity?
I’m trying to implement the Harrow-Hassidim-Lloyd (HHL) algorithm for two simultaneous equations. However, I’ve encountered a challenge because the matrices involved have different dimensions:
...