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

Problem with conversion of qiskit circuit with reset gate into mitiq #2469

Open
Julie-Maria-Raju opened this issue Aug 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Julie-Maria-Raju
Copy link

Julie-Maria-Raju commented Aug 15, 2024

I wanted to use the error mitigation using PEC for amplitude damping and I tried writing my own finding optimal representation code and is not working as it shows error in conversion of reset gate.

Given below is the error message:

raise CircuitConversionError(
mitiq.interface.conversions.CircuitConversionError: Circuit could not be converted to an internal Mitiq circuit. This may be because the circuit contains custom gates or Pragmas (pyQuil). If you think this is a bug or that this circuit should be supported, you can open an issue at https://github.com/unitaryfund/mitiq. 

 Provided circuit has type <class 'qiskit.circuit.quantumcircuit.QuantumCircuit'> and is:

   ┌───┐     
q: ┤ H ├─|0>─

Please help.

@Julie-Maria-Raju Julie-Maria-Raju added the bug Something isn't working label Aug 15, 2024
Copy link

Hello @Julie-Maria-Raju, thank you for your interest in Mitiq!
If this is a bug report, please provide screenshots and/or minimum viable code to reproduce your issue, so we can do our best to help get it fixed. If you have any questions in the meantime, you can also ask us on the Unitary Fund Discord.

@natestemen
Copy link
Member

Hi @Julie-Maria-Raju! Thanks for opening an issue!

This is a known issue with Mitiq (#2042), and currently the only workaround is to define your circuit using Cirq. Apologies for not having a better suggestion here.

Under the hood this is a limitation in how Cirq imports circuits from QASM. I've opened an issue upstream (quantumlib/Cirq#6704) to see if they are interested in making a change.

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

2 participants