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

extended_stabilizer can't handle rz Clifford gates #2122

Open
zlatko-minev opened this issue May 3, 2024 · 0 comments
Open

extended_stabilizer can't handle rz Clifford gates #2122

zlatko-minev opened this issue May 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zlatko-minev
Copy link

zlatko-minev commented May 3, 2024

Informations

  • Qiskit Aer version: 0.14.1
  • Python version: 3.11
  • Operating system: Mac

What is the current behavior?

When running sim with rz gates, the extended_stabilizer fails, see code

Steps to reproduce the problem

from qiskit_aer.primitives import EstimatorV2 
qc = QuantumCircuit(2)
qc.rz(np.pi/2,0) # Clifford gates
qc.cx(0,1)
qc.measure_all()

simulator = AerSimulator(method='extended_stabilizer')
simulator.run(qc)

returns

Simulation failed and returned the following error message:
ERROR: CH::State: Invalid gate operation 'rz'. [Experiment 0] CH::State: Invalid gate operation 'rz'.

What is the expected behavior?

Ideally since we transpile all circuits down to rz gates, for verification, we want to be able to simulate these. Ideally the method could be able to resolve rz gates that are Clifford and ecr gates.

Suggested solutions

@zlatko-minev zlatko-minev added the bug Something isn't working label May 3, 2024
@zlatko-minev zlatko-minev changed the title extended_stabilizer can't handle rz gate extended_stabilizer can't handle rz Clifford gates May 3, 2024
This was referenced May 23, 2024
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