Question about running the find_optimal_representation method in the PEC module #1995
-
I have a question about using the PEC module of mitiq:
I'm looking to run the
Do the I tried that and it doesn't seem to be working. Also, I'd like to use post-selection operations so numerical matrices are preferred, for the noisy operation parameter. I can see there's an option to input a superoperator but it isn't clear to me whether that's sufficient. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @eshaspark, You can find an example on how define noisy operations at this link. In mitiq we assume that noisy operations are noisy versions of ideal unitary gates, so post-selection operations are not supported in principle. However, you may try to define noisy operations with post-selection gates, an see if you get an error in the process. Alternatively, if you have the numerical super-operator matrices and you are just interested in solving the underlying optimization problem from a numerical perspective (i.e. no circuits, no NoisyOperations objects, etc..), you may have a look at the function |
Beta Was this translation helpful? Give feedback.
-
You are right. Custom gates such as those defined by numerical matrices are not supported in Mitiq. So one can apply PEC only if the circuit is already decomposed into native gates or at least standard gates such as H, S, T, CZ, etc... . |
Beta Was this translation helpful? Give feedback.
You are right. If you aim to implement PEC, the NoisyOperation objects must be applicable in a circuit as actual real gates on real qubits.
So, if the specific operations you are interested in are not implementable in Qiskit, I think there is no way to apply PEC with or without Mitiq.
About Qiskit conditional operations: you might be interested in this method. It allows to apply gates based on a previous measurement outcome. Likely this kind of operations won't be compatible with Mitiq due to conversion errors, but at least you may find a way to manually implement your noisy operations in a Qiskit circuit.