chore: Enforce naming conventions on module files
This commit is contained in:
@@ -5,12 +5,12 @@ import numpy as np
|
|||||||
|
|
||||||
|
|
||||||
class QiboCircuitToEinsum:
|
class QiboCircuitToEinsum:
|
||||||
"""Convert a circuit to a Tensor Network (TN) representation. The circuit
|
"""Convert a circuit to a Tensor Network (TN) representation.
|
||||||
is first processed to an intermediate form by grouping each gate matrix
|
|
||||||
with its corresponding qubit it is acting on to a list. It is then
|
The circuit is first processed to an intermediate form by grouping each gate matrix
|
||||||
converted to an equivalent TN expression through the class function
|
with its corresponding qubit it is acting on to a list. It is then converted to an
|
||||||
state_vector_operands() following the Einstein summation convention in the
|
equivalent TN expression through the class function state_vector_operands()
|
||||||
interleave format.
|
following the Einstein summation convention in the interleave format.
|
||||||
|
|
||||||
See document for detail of the format: https://docs.nvidia.com/cuda/cuquantum/python/api/generated/cuquantum.contract.html
|
See document for detail of the format: https://docs.nvidia.com/cuda/cuquantum/python/api/generated/cuquantum.contract.html
|
||||||
|
|
||||||
@@ -2,8 +2,8 @@ import cupy as cp
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from cuquantum import cutensornet as cutn
|
from cuquantum import cutensornet as cutn
|
||||||
|
|
||||||
from qibotn.MPSUtils import apply_gate, initial
|
from qibotn.circuit_convertor import QiboCircuitToEinsum
|
||||||
from qibotn.QiboCircuitConvertor import QiboCircuitToEinsum
|
from qibotn.mps_utils import apply_gate, initial
|
||||||
|
|
||||||
|
|
||||||
class QiboCircuitToMPS:
|
class QiboCircuitToMPS:
|
||||||
@@ -2,9 +2,9 @@ import cupy as cp
|
|||||||
from cupy.cuda.runtime import getDeviceCount
|
from cupy.cuda.runtime import getDeviceCount
|
||||||
from cuquantum import contract
|
from cuquantum import contract
|
||||||
|
|
||||||
|
from qibotn.circuit_convertor import QiboCircuitToEinsum
|
||||||
|
from qibotn.circuit_to_mps import QiboCircuitToMPS
|
||||||
from qibotn.mps_contraction_helper import MPSContractionHelper
|
from qibotn.mps_contraction_helper import MPSContractionHelper
|
||||||
from qibotn.QiboCircuitConvertor import QiboCircuitToEinsum
|
|
||||||
from qibotn.QiboCircuitToMPS import QiboCircuitToMPS
|
|
||||||
|
|
||||||
|
|
||||||
def dense_vector_tn(qibo_circ, datatype):
|
def dense_vector_tn(qibo_circ, datatype):
|
||||||
|
|||||||
Reference in New Issue
Block a user