-
Notifications
You must be signed in to change notification settings - Fork 15
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
Margolus implementation #46
Comments
@fschulz21 It is possible to decompose the 3-qubit Margolus gate using the QCOpt package. However, since Margolus was not part of the package, I just added support for it, which you should be able to find in the PR named
The output of executing the above code is below. Looks like the optimal circuit, as shown below, is
|
This is very nice. Thanks for the help. Look forward to explore the package for many other quantum gates. I see that the MIP solver you mentioned is a commercial one, for which I do not have a license. Is there an open-source option to execute the above code? |
I am trying to implement the Margolus gate (simplified Toffoli with a single sign change) using this package. Here is an implementation in Figure (2) which does the job, but I am not able to reproduce this circuit or find a better one if there exists one such implementation. Is this something possible using this package? I presume Qiskit may implement this, while there may not be guarantees on the quality of the circuit.
The text was updated successfully, but these errors were encountered: