From 820744e57e0a7fc2b4f63cfe7e1d90df3736c3a4 Mon Sep 17 00:00:00 2001 From: Liwei Yang Date: Wed, 19 Apr 2023 15:19:26 +0800 Subject: [PATCH] Remove unused functions --- src/qibotn/__main__.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/src/qibotn/__main__.py b/src/qibotn/__main__.py index 15a775a..052dfaa 100644 --- a/src/qibotn/__main__.py +++ b/src/qibotn/__main__.py @@ -21,41 +21,5 @@ def main(args: argparse.Namespace): qibotn.quimb.eval(args.nqubits, args.qasm_circ, args.init_state) -def parser_cuquantum(): - parser = argparse.ArgumentParser() - - parser.add_argument( - "--nqubits", default=10, type=int, help="Number of quibits in the circuits." - ) - - parser.add_argument( - "--circuit", - default="qft", - type=str, - help="Type of circuit to use. See README for the list of " - "available circuits.", - ) - - parser.add_argument( - "--precision", - default="complex128", - type=str, - help="Numerical precision of the simulation. " - "Choose between 'complex128' and 'complex64'.", - ) - - return parser.parse_args() - - -def run_bench(task, label): - start = timer() - result = task() - end = timer() - circuit_eval_time = end - start - print(f"Simulation time: {label} = {circuit_eval_time}s") - - return result - - if __name__ == "__main__": main(parser())