Anders and Briegel in Python
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

profile_cz_table.py 311B

12345678910111213
  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)