src/report.cc
/*
     * reports the statistics of the circuits of the given kernels individually and in total
     * by appending them to the report file of the given program and place from where the report is done;
     * this report file is first created/truncated
     *
     * report_statistics is used in the cases where there is no pass specific data to report
     * otherwise, the sequence of calls in here has to be copied and supplemented by some report_string calls
     */
reports the statistics of the circuits of the given kernels individually and in total
by appending them to the report file of the given program and place from where the report is done;
this report file is first created/truncated

report_statistics is used in the cases where there is no pass specific data to report
otherwise, the sequence of calls in here has to be copied and supplemented by some report_string calls
reports the statistics of the circuits of the given kernels individually and in total by appending them to the report file of the given program and place from where the report is done ; this report file is first created / truncated report_statistics is used in the cases where there is no pass specific data to report otherwise the sequence of calls in here has to be copied and supplemented by some report_string calls
void report_statistics(quantum_program*     programp,
                const ql::quantum_platform&     platform,
                const std::string               in_or_out,
                const std::string               pass_name,
                const std::string               comment_prefix
               )
    {
        if( ql::options::get("write_report_files") != "yes")
        {
            return;
        }
        std::ofstream   ofs;
        ofs = report_open(programp, in_or_out, pass_name);
        for (auto& k : programp->kernels)
        {
            report_kernel_statistics(ofs, k, platform, comment_prefix);
        }
        report_totals_statistics(ofs, programp->kernels, platform, comment_prefix);
        report_close(ofs);
    }
void report_statistics ( quantum_program * programp , const ql :: quantum_platform & platform , const std :: string in_or_out , const std :: string pass_name , const std :: string comment_prefix ) { if ( ql :: options :: get ( " " ) != " " ) { return ; } std :: ofstream ofs ; ofs = report_open ( programp , in_or_out , pass_name ) ; for ( auto & k : programp -> kernels ) { report_kernel_statistics ( ofs , k , platform , comment_prefix ) ; } report_totals_statistics ( ofs , programp -> kernels , platform , comment_prefix ) ; report_close ( ofs ) ; }
reports the statistics of the circuits of the given kernels individually and in total
 by appending them to the report file of the given program and place from where the report is done;
 this report file is first created/truncated
reports the statistics of the circuits of the given kernels individually and in total by appending them to the report file of the given program and place from where the report is done ; this report file is first created / truncated
// DOUT("... reporting report_statistics"); // per kernel reporting // and total collecting and reporting // DOUT("... reporting report_statistics [done]");