Added check for initial conditions
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user