Closed evmckinney9 closed 2 years ago
This was due to the fact that Fredkin Gates were decomposed after Toffoli gates were decomposed in the pipeline. It should now fully decompose that Toffoli as well when -T is provided with the latest commit.
Let me know if this fixes the problem please.
the new commit does not pass regression_test.sh
Generating OpenQASM fails
With the last commit, it should work. There was an issue with the changes in the makefil
I am unsure I am using the commands correctly so any help is appreciated. For test_cases/All_Gates_Example/all_gates.scaffold, I am interesting in compiling into OpenQasm with all ccx gates decomposed. all_gates.scaffold contains these lines of code which will contain cxx gates.
First, I run
./scaffold.sh -b all_gates.scaffold
and the Toffoli and Fredkin gates are written asNext, I run
./scaffold.sh -b -T all_gates.scaffold
and the Toffoli gate is decmoposed.Except I still have ccx gates from the Fredkin gate, so I change the level of recursion flag and run
./scaffold.sh -b -T -l 2 all_gates.qasm
(I tested various levels of recursion between 2 and 10).The inclusion of recursion does not eliminate the remaining ccx gates. The resulting .qasm code is exactly the same as from before without the recursion flag.
How I can I eliminate all ccx gates? I want to use ScaffCC and TriQ together, but TriQ does not allow for these gates. Thanks