Added check for initial conditions

This commit is contained in:
tankya2
2023-11-03 17:08:03 +08:00
committed by yangliwei
parent 18cda1253a
commit f6f9e105a2

View File

@@ -43,13 +43,17 @@ class QiboTNBackend(NumpyBackend):
xxx. xxx.
""" """
if initial_state is not None:
raise_error(NotImplementedError, "QiboTN cannot support initial state.")
if self.platform == "cu_tensornet": if self.platform == "cu_tensornet":
if initial_state is not None:
raise_error(NotImplementedError, "QiboTN cannot support initial state.")
state = cutn.eval(circuit, self.dtype) state = cutn.eval(circuit, self.dtype)
if self.platform == "cu_mps": if self.platform == "cu_mps":
if initial_state is not None:
raise_error(NotImplementedError, "QiboTN cannot support initial state.")
gate_algo = { gate_algo = {
"qr_method": False, "qr_method": False,
"svd_method": { "svd_method": {