Anders and Briegel in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
311B

  1. from abp import make_tables
  2. import cProfile, pstats, StringIO
  3. unitaries = make_tables.get_unitaries()
  4. profiler = cProfile.Profile()
  5. profiler.enable()
  6. make_tables.get_cz_table(unitaries)
  7. profiler.disable()
  8. # Print output
  9. stats = pstats.Stats(profiler).strip_dirs().sort_stats('tottime')
  10. stats.print_stats(10)