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
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.
The text was updated successfully, but these errors were encountered:
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.
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.
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:
Please help.
The text was updated successfully, but these errors were encountered: