def parse_arguments(args):
    """Helper function that parses the given arguments."""
    parser = argparse.ArgumentParser('Quantum volume benchmark.')
    parser.add_argument(
        '--num_qubits', default=4, type=int, help='The number of circuit qubits to benchmark.'
    )
    parser.add_argument('--depth', default=4, type=int, help='SU(4) circuit depth.')
    parser.add_argument(
        '--routes', default=30, type=int, help='Number of different qubit routes to try'
    )
    parser.add_argument(
        '--seed', default=None, type=int, help='Seed for the Random Number Generator.'
    )
    parser.add_argument(
        '--num_circuits',
        default=100,
        type=int,
        help='The number of random circuits to run on the quantum computer.'
        ' According to the source paper, this should be at least 100.',
    )
    return vars(parser.parse_args(args))
Helper function that parses the given arguments.
examples/advanced/quantum_volume.py