Merge branch 'doc-fix' of https://github.com/qiboteam/qibotn into doc-fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user