public void test(QRegister arg) {
   resetCounter();
   for (int i = 0; i < iterations; i++) {
     QRegister qr = new QRegister(arg);
     QCircuit qc = new QCircuit();
     qc.addStage(new Measurement(qr.size));
     addMeasured(qc.compute(qr));
   }
 }
  public void test(QRegister init, QCircuit circuit) {

    resetCounter();
    for (int i = 0; i < iterations; i++) {
      QRegister qr = new QRegister(init);
      QRegister output = circuit.compute(qr);
      //      QCircuit measurement = new QCircuit();
      //      measurement.addStage(new Measurement(qr.getSize()));
      //       output = measurement.compute(output);
      String result = output.dirac();
      addMeasured(output);
    }
  }