<commit_before>// Used for testing, do not use it as an example
#include <iostream>

#include "qpp.h"

int main() {
    /////////// testing ///////////
    using namespace qpp;

    QCircuit qc{4, 4};
    qc.measureV(gt.H, 3, 3);
    qc.QFT();
    qc.measureZ(0, 0);
    qc.measureZ(1, 1);

    std::cout << qc << std::endl << std::endl;

    QEngine q_engine{qc};
    std::cout << q_engine << std::endl;

    std::cout << qc.get_gate_depth("CTRL-R2") << std::endl;
    std::cout << qc.get_gate_depth() << std::endl;
    std::cout << qc.get_gate_count("H") << std::endl;
    std::cout << qc.get_gate_depth("H") << std::endl;
}<commit_msg>commit<commit_after>// Used for testing, do not use it as an example
#include <iostream>

#include "qpp.h"

int main() {
    /////////// testing ///////////
    using namespace qpp;

    const idx N = 100; // qubits
    QCircuit qc{N};

    std::cout << "filling the circuit...\n";
    for (idx i = 0; i < 1000000 * N; ++i) {
        idx ctrl = randidx(0, N - 1);
        idx target = randidx(0, N - 1);
        while (target == ctrl)
            target = randidx(0, N - 1);
        qc.gate(gt.CNOT, ctrl, target);
    }

    std::cout << "gate count: " << qc.get_gate_count() << std::endl;
    std::cout << "gate depth: " << qc.get_gate_depth() << std::endl;
}
{'fraction_non_alphanumeric': 0.2132409545804465, 'fraction_numerical': 0.020015396458814474, 'mean_word_length': 2.3678756476683938, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6299262', 'n_tokens_mistral': 512, 'n_tokens_neox': 470, 'n_words': 123}