Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected output from extended stabilizer simulator #2315

Open
AthenaCaesura opened this issue Feb 10, 2025 · 0 comments
Open

Unexpected output from extended stabilizer simulator #2315

AthenaCaesura opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@AthenaCaesura
Copy link

Environment

  • Qiskit version: 1.3.2
  • Python version: 3.11.11
  • Operating system: MacOS

What is happening?

When I add in a CNOT to a simple circuit with T gates and hadamards, I seem to be getting an incorrect output. Issue persists even when accuracy is increased.

How can we reproduce the issue?

import qiskit

from qiskit_aer import AerSimulator

sim = AerSimulator(method="extended_stabilizer")

qc = qiskit.QuantumCircuit(2)

qc.h(0)
qc.t(0)
qc.h(0)
qc.cx(0, 1)

qc.measure_all()

opts = {
    'extended_stabilizer_approximation_error': 0.01,
    'extended_stabilizer_mixing_time': 1000,
}

results = sim.run(qc, shots=100, **opts).result()

print(results.get_counts())

What should happen?

Outputs 00 and 11 with 50% probability regardless of how I increase precision. I would expect to get 11 approximately 15% of the time and 00 approximately 85% of the time.

Any suggestions?

Unsure how this might be occurring as I get the correct ratio when I get rid of the CNOT. Perhaps I'm misusing the CNOT. Perhaps there is some other accuracy measure that I need to adjust that I just didn't see?

@AthenaCaesura AthenaCaesura added the bug Something isn't working label Feb 10, 2025
@jakelishman jakelishman transferred this issue from Qiskit/qiskit Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant