Update docstrings and further refinement

This commit is contained in:
tankya2
2024-03-04 16:08:59 +08:00
parent 07f433f24e
commit e6a3060c81
3 changed files with 37 additions and 7 deletions

View File

@@ -7,6 +7,17 @@ from qibotn.mps_utils import apply_gate, initial
class QiboCircuitToMPS:
"""A helper class to convert Qibo circuit to MPS.
Parameters:
circ_qibo: The quantum circuit object.
gate_algo(dict): Dictionary for SVD and QR settings.
datatype (str): Either single ("complex64") or double (complex128) precision.
rand_seed(int): Seed for random number generator.
Return:
None.
"""
def __init__(
self,
circ_qibo,