Removed default dtype

This commit is contained in:
tankya2
2023-08-03 13:32:20 +08:00
parent ca6d5796dc
commit ce018abb16

View File

@@ -2,7 +2,7 @@ import cupy as cp
from cuquantum.cutensornet.experimental import contract_decompose from cuquantum.cutensornet.experimental import contract_decompose
from cuquantum import contract from cuquantum import contract
def get_initial_mps(num_qubits, dtype='complex128'): def initial(num_qubits, dtype):
""" """
Generate the MPS with an initial state of |00...00> Generate the MPS with an initial state of |00...00>
""" """
@@ -75,4 +75,4 @@ def apply_gate(
mps_site_right_swap(mps_tensors, i, algorithm=algorithm, options=options) mps_site_right_swap(mps_tensors, i, algorithm=algorithm, options=options)
else: else:
raise NotImplementedError("Only one- and two-qubit gates supported") raise NotImplementedError("Only one- and two-qubit gates supported")
return mps_tensors return mps_tensors