Closed rharper2 closed 2 months ago
I noticed that the following gives the desired output...
import qiskit
import qiskit_aer as aer
c = qiskit.QuantumCircuit(127,127)
for i in range(127):
c.reset(i)
for i in range(127):
c.x(i)
c.measure(range(127),range(127))
simulator = aer.AerSimulator(method="stabilizer")
print(simulator.num_qubits)
r = simulator.run(c,shots=2000).result()
print(r.get_counts(c))
Gives:
10000
{'1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111': 2000}
This issue should be fixed by PR #2094
This issue is fixed by Release 0.14.1
Informations
What is the current behavior?
If you measure, say, 127 qubits, only the results of 64 are returned.
Steps to reproduce the problem
Gives output:
What is the expected behavior?
Should give output:
Suggested solutions
Almost certainly some precision problem.