Skip to content

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