Skip to content

Commit

Permalink
Improve MARP
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Nov 17, 2024
1 parent cb41504 commit a46d741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions marp_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ def bench_qrack(width, depth, sdrp_samples):
start = time.perf_counter()
sdrp = 1 if sdrp_samples == 1 else ((sdrp_segments - i) / sdrp_segments)

sim = QrackSimulator(width, isTensorNetwork=False)
sim.set_reactive_separate(False)
sim = QrackSimulator(width)
if sdrp > 0:
sim.set_sdrp(sdrp)

Expand Down
3 changes: 1 addition & 2 deletions marp_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def bench_qrack(width, depth, sdrp_samples):
start = time.perf_counter()
sdrp = 1 if sdrp_samples == 1 else ((sdrp_segments - i) / sdrp_segments)

sim = QrackSimulator(width, isTensorNetwork=False)
sim.set_reactive_separate(False)
sim = QrackSimulator(width)
if sdrp > 0:
sim.set_sdrp(sdrp)

Expand Down

0 comments on commit a46d741

Please sign in to comment.