Remove none type from docstring
This commit is contained in:
@@ -29,9 +29,6 @@ class QiboCircuitToEinsum:
|
|||||||
"""Create the operands for dense vector computation in the interleave
|
"""Create the operands for dense vector computation in the interleave
|
||||||
format.
|
format.
|
||||||
|
|
||||||
Parameters:
|
|
||||||
None
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Operands for the contraction in the interleave format.
|
Operands for the contraction in the interleave format.
|
||||||
"""
|
"""
|
||||||
@@ -106,9 +103,6 @@ class QiboCircuitToEinsum:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
circuit (object): The quantum circuit object.
|
circuit (object): The quantum circuit object.
|
||||||
|
|
||||||
Returns:
|
|
||||||
None
|
|
||||||
"""
|
"""
|
||||||
self.gate_tensors = []
|
self.gate_tensors = []
|
||||||
gates_qubits = []
|
gates_qubits = []
|
||||||
@@ -139,9 +133,6 @@ class QiboCircuitToEinsum:
|
|||||||
Parameters:
|
Parameters:
|
||||||
backend (object): The backend object providing the array conversion method.
|
backend (object): The backend object providing the array conversion method.
|
||||||
dtype (object): The data type for the quantum state vectors.
|
dtype (object): The data type for the quantum state vectors.
|
||||||
|
|
||||||
Returns:
|
|
||||||
None
|
|
||||||
"""
|
"""
|
||||||
asarray = backend.asarray
|
asarray = backend.asarray
|
||||||
state_0 = asarray([1, 0], dtype=dtype)
|
state_0 = asarray([1, 0], dtype=dtype)
|
||||||
@@ -157,9 +148,6 @@ class QiboCircuitToEinsum:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
circuit (object): The quantum circuit object.
|
circuit (object): The quantum circuit object.
|
||||||
|
|
||||||
Returns:
|
|
||||||
None
|
|
||||||
"""
|
"""
|
||||||
self.gate_tensors_inverse = []
|
self.gate_tensors_inverse = []
|
||||||
gates_qubits_inverse = []
|
gates_qubits_inverse = []
|
||||||
|
|||||||
@@ -14,9 +14,6 @@ class QiboCircuitToMPS:
|
|||||||
gate_algo(dict): Dictionary for SVD and QR settings.
|
gate_algo(dict): Dictionary for SVD and QR settings.
|
||||||
datatype (str): Either single ("complex64") or double (complex128) precision.
|
datatype (str): Either single ("complex64") or double (complex128) precision.
|
||||||
rand_seed(int): Seed for random number generator.
|
rand_seed(int): Seed for random number generator.
|
||||||
|
|
||||||
Return:
|
|
||||||
None.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|||||||
@@ -19,9 +19,6 @@ class MPSContractionHelper:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
num_qubits: The number of qubits for the MPS.
|
num_qubits: The number of qubits for the MPS.
|
||||||
|
|
||||||
Return:
|
|
||||||
None.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, num_qubits):
|
def __init__(self, num_qubits):
|
||||||
|
|||||||
Reference in New Issue
Block a user