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
If you measure, say, 127 qubits, only the results of 64 are returned.
Steps to reproduce the problem
import qiskit
import qiskit_aer as aer
c = qiskit.QuantumCircuit(127,127)
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))
rharper2
changed the title
Aer simulator (stabilizer) only reports results of first 64 qubits.
Aer simulator (stabilizer) only reports results of first 64 qubits - unless you reset the qubits first
Apr 22, 2024
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))
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.
The text was updated successfully, but these errors were encountered: