You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm exploring the code from the first tutorial 01_chemistry_hamiltonian.ipynb, either under different molecule or parameter scenarios.
The code is very clear and well structured, so first of all I want to thank you for the clean job.
Still, I'm stuck on a problem that I'm struggling to understand:
I was curious to see how different the results would be if i ran the circuit in a noiseless scenario vs. a realistic one. As far as I know, this is not possible using a fake_provider, while it should be possible using AerSimulator.
I have tried to implement this:
The code runs, but what I do not understand is why I only get vectors of zeros in this noiseless setup: {'00000000000000': 10000}
which of course causes problems with the code that follows.
When I comment the line backend.set_options(noise_model=None), the code works as expected, returning many different bitstrings. So it looks to me like the problem is the noiseless simulation. I have tried to construct a noiseless simulator in other ways, playing with the preset manager, layout, etc.. but I always end up with this problem.
From my perspective, it doesn't make sense that this method shouldn't work with a noiseless simulator, as I'm expecting bitstrings about the physical electronic configurations.
Is this a bug or am I wrong in something?
Thank you for your time!
The text was updated successfully, but these errors were encountered:
qiskit-aer is probably going to struggle with an exact calculation on a 32-qubit circuit. As far as I know, that's too large for Aer. That beingh said, I don't see why you're just getting 10_0000's rather than some runtime error telling you your circuit is too large. If you could come up with a minimal reproducible example, you might consider submitting an issue to qiskit-aer.
This issue is out of scope for this package, as qiskit-addon-sqd does not deal with the ansatze and doing the sampling -- only the post-processing. We only include that example in the tutorial so that SQD users have more documentation regarding the LUCJ ansatz (mostly from ffsim).
I'm going to close this, but I'd encourage you to submit an issue to Aer if you think it is behaving unexpectedly.
I confirm the presence of the same behavior on a minimal circuit (H2 molecule, 4 qubits).
I'll try to dive deeper in aer code, and eventually report the issue to qiskit-aer, since this looks to me like something important.
Hello,
I'm exploring the code from the first tutorial 01_chemistry_hamiltonian.ipynb, either under different molecule or parameter scenarios.
The code is very clear and well structured, so first of all I want to thank you for the clean job.
Still, I'm stuck on a problem that I'm struggling to understand:
I was curious to see how different the results would be if i ran the circuit in a noiseless scenario vs. a realistic one. As far as I know, this is not possible using a
fake_provider
, while it should be possible usingAerSimulator
.I have tried to implement this:
The code runs, but what I do not understand is why I only get vectors of zeros in this noiseless setup:
{'00000000000000': 10000}
which of course causes problems with the code that follows.
When I comment the line
backend.set_options(noise_model=None)
, the code works as expected, returning many different bitstrings. So it looks to me like the problem is the noiseless simulation. I have tried to construct a noiseless simulator in other ways, playing with the preset manager, layout, etc.. but I always end up with this problem.From my perspective, it doesn't make sense that this method shouldn't work with a noiseless simulator, as I'm expecting bitstrings about the physical electronic configurations.
Is this a bug or am I wrong in something?
Thank you for your time!
The text was updated successfully, but these errors were encountered: