Skip to content

Commit

Permalink
Updated MPI example
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloAndresCQ committed Nov 16, 2023
1 parent 193aed9 commit f1c9678
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/mpi/mpi_overlap_bcast_mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@

from pytket.circuit import Circuit, fresh_symbol

from pytket.extensions.cutensornet.mps import (
from pytket.extensions.cutensornet.tnstate import (
simulate,
ConfigMPS,
ContractionAlg,
Config,
SimulationAlgorithm,
CuTensorNetHandle,
)

Expand Down Expand Up @@ -109,7 +109,7 @@
this_proc_mps = []
with CuTensorNetHandle(device_id) as libhandle: # Different handle for each process
for circ in this_proc_circs:
mps = simulate(libhandle, circ, ContractionAlg.MPSxGate, ConfigMPS())
mps = simulate(libhandle, circ, SimulationAlgorithm.MPSxGate, Config())
this_proc_mps.append(mps)

if rank == root:
Expand Down

0 comments on commit f1c9678

Please sign in to comment.