Running scaffold.sh -f for the following file:
int main() {
qbit q[1];
cbit c = MeasZ(q[0]);
return 0;
}
causes Segmentation fault :
measure_qubit.scaffold
[Scaffold.makefile] Compiling measure_qubit_merged.scaffold ...
[Scaffold.makefile] Transforming cbits ...
[Scaffold.makefile] O1 optimizations ...
[Scaffold.makefile] Unrolling Loops (1) ...
[Scaffold.makefile] Cloning Functions (1) ...
Functions Cloned: 0
[Scaffold.makefile] Dead Argument Elimination (1) ...
[Scaffold.makefile] Unrolling Loops (2) ...
[Scaffold.makefile] Cloning Functions (2) ...
Functions Cloned: 0
[Scaffold.makefile] Dead Argument Elimination (2) ...
[Scaffold.makefile] Internalizing and Removing Unused Functions ...
[Scaffold.makefile] Inserting Reverse Functions...
[Scaffold.makefile] Flattening modules ...
/bin/bash: line 1: 76 Segmentation fault /root/ScaffCC/build/Release+Asserts/bin/opt -load /root/ScaffCC/build/Release+Asserts/lib/Scaffold.so -gen-qasm measure_qubit12.inlined.ll 2> measure_qubit.qasmh > /dev/null
Running scaffold.sh does not cause any problems. Above is a problem when running on epiqc/scaffcc Docker.
Running
scaffold.sh -ffor the following file:causes Segmentation fault :
Running
scaffold.shdoes not cause any problems. Above is a problem when running onepiqc/scaffccDocker.