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

About the CTQG part in the paper #45

Open
sqrta opened this issue Jan 8, 2021 · 2 comments
Open

About the CTQG part in the paper #45

sqrta opened this issue Jan 8, 2021 · 2 comments

Comments

@sqrta
Copy link

sqrta commented Jan 8, 2021

Is the CTQG(CLASSICAL-TO-QUANTUMGATE CONVERSION) part proposed in the paper available now? I want to transform some simple classical functions into the quantum circuit but do not find doc for the CTQG. The example code in the paper

#define M 100
scaff_module main_ctqg(qint[16] sum, qint[16] i, qint[16] n){
int control_i;
$ i := 1;
$ sum := 0;
for (control_i = 1; control_i <= M; control_i++) {
$if (i <= n)
$ sum += i;
$endif
$ i += 1;
}

cannot be compiled by current ScaffCC.

@epiqc
Copy link
Collaborator

epiqc commented Jan 8, 2021 via email

@sqrta
Copy link
Author

sqrta commented Jan 8, 2021

Thanks. After I build the RKQC and run the hello world example in the terminal

./rkqc src/examples/e001_hello_world.cpp 

It prints out an error

Compiling src/examples/e001_hello_world
./src/examples
Building RKQC
CMake Error at examples/CMakeLists.txt:2 (add_executable):
Done.
Running src/examples/e001_hello_world
./rkqc: line 34: build/examples/src/examples/e001_hello_world: No such file or directory
Cleaning Output

The file examples/CMakeLists.txt is

macro(add_test ARG1)
    add_executable( ${ARG1} ${ARG1}.cpp )
    target_link_libraries( ${ARG1} ${ARGN} )
    install( TARGETS ${ARG1} DESTINATION ${CMAKE_INSTALL_PREFIX} )
endmacro(add_test)
add_test( src/examples/e001_hello_world revkit_core boost_system boost_filesystem boost_regex boost_signals )

My cmake is in version 3.5.1.

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

No branches or pull requests

1 participant