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

refactor IonTrapQubitPass to use Visitor pattern #562

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stevescia
Copy link

@stevescia stevescia commented Nov 18, 2022

Refactored IonTrapTwoQubitPass to use visitor pattern; /workspace/xacc/quantum/plugins/iontrap/tests/IonTrapTwoQubitPassTester.cpp were compiled and ran:

ls -lrt
-rwxr-xr-x 1 gitpod gitpod 2570920 Nov 17 02:48 IonTrapTwoQubitPassTester

gitpod /workspace/xacc/build/quantum/plugins/iontrap/tests $ ./IonTrapTwoQubitPassTester
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from IonTrapTwoQubitPassTester
[ RUN ] IonTrapTwoQubitPassTester.twoQubitPassDecomposesCnot
[ OK ] IonTrapTwoQubitPassTester.twoQubitPassDecomposesCnot (19 ms)
[ RUN ] IonTrapTwoQubitPassTester.twoQubitPassDecomposesCZ
[ OK ] IonTrapTwoQubitPassTester.twoQubitPassDecomposesCZ (3 ms)
[ RUN ] IonTrapTwoQubitPassTester.twoQubitPassDecomposesSwap
[ OK ] IonTrapTwoQubitPassTester.twoQubitPassDecomposesSwap (4 ms)
[----------] 3 tests from IonTrapTwoQubitPassTester (26 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran. (27 ms total)
[ PASSED ] 3 tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant