Merge branch 'doc-fix' of https://github.com/qiboteam/qibotn into doc-fix

This commit is contained in:
tankya2
2024-03-04 15:49:09 +08:00
2 changed files with 4 additions and 5 deletions

View File

@@ -3,9 +3,8 @@ from cuquantum import contract
from cuquantum.cutensornet.experimental import contract_decompose
def initial(num_qubits, dtype):
"""Generate the MPS with an initial state of :math:`\ket{00...00}`"""
r"""Generate the MPS with an initial state of :math:`\ket{00...00}`"""
state_tensor = cp.asarray([1, 0], dtype=dtype).reshape(1, 2, 1)
mps_tensors = [state_tensor] * num_qubits
return mps_tensors