diff --git a/docs/build/doctrees/api/WPSProtocol.doctree b/docs/build/doctrees/api/WPSProtocol.doctree index 3a2b7ca..095c389 100644 Binary files a/docs/build/doctrees/api/WPSProtocol.doctree and b/docs/build/doctrees/api/WPSProtocol.doctree differ diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle index 29dfbab..f5bcf6d 100644 Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ diff --git a/docs/build/html/_modules/index.html b/docs/build/html/_modules/index.html index b146ad7..7896854 100644 --- a/docs/build/html/_modules/index.html +++ b/docs/build/html/_modules/index.html @@ -72,7 +72,6 @@

All modules for which code is available

diff --git a/docs/build/html/api/WPSProtocol.html b/docs/build/html/api/WPSProtocol.html index 785c3e6..47f7e2c 100644 --- a/docs/build/html/api/WPSProtocol.html +++ b/docs/build/html/api/WPSProtocol.html @@ -63,19 +63,7 @@
  • WPSresource_Hamiltonian_TimeEvolOp_IsingType()
  • -
  • WPSProtocol.Part_2A module -
  • +
  • WPSProtocol.Part_2A module
  • Module contents
  • @@ -209,92 +197,8 @@

    Submodules -

    WPSProtocol.Part_2A module

    -
    -
    -WPSProtocol.Part_2A.H_noise(params, **kwargs)[source]
    -

    Generates (S) type Hamiltonian for N number of qubits. -'S' can be X, Y, Z. -For eg: (X+Y) Hamiltonian, params['opH'] = [X, Y]. -(X+Y+Z) Hamiltonian, params['opH'] = [X, Y, Z].

    -
    - -
    -
    -WPSProtocol.Part_2A.TimeEvolOpForTFH(params, **kwargs)[source]
    -

    Returns time evolution operator of -Args: params (dictionary) -kwargs: TFH (list of Toggling frame hamiltonian)

    -
    - -
    -
    -WPSProtocol.Part_2A.TogglingFrameH(params, **kwargs)[source]
    -

    Returns list of Toggling Frame Hamiltonians of (X+Y) Hamiltonian for the complete pulse sequence. -Args: params (dictionary)

    -
    - -
    -
    -WPSProtocol.Part_2A.TogglingFrame_Ising(params, **kwargs)[source]
    -

    Returns toggling frame hamiltonian of the Ising Model.

    -
    - -
    -
    -WPSProtocol.Part_2A.avgHFromTogglingFrameH(params, **kwargs)[source]
    -

    Returns Average Hamiltonian given a list of Toggling Frame Hamiltonians. -Args: params (dictionary) -kwargs: TFH [Required]

    -
    - -
    -
    -WPSProtocol.Part_2A.initialVals(params, **kwargs)[source]
    -

    Initializes initial_wavefunction and it's normalized form based on number of qubits. -Returns: -n: length of the pulse sequence, -N: total number of qubits, -r: coupling constants generated randomly for N qubits, -op: params['opH'], -pulses: params['pulses'], -psi_nmn: normalized initial wavefunction randomly generated from Gaussian Distribution, -R: inverse of r, -alpha: extent to which the qubits can interact, -Args: params: dictionary

    -
    - -
    -
    -WPSProtocol.Part_2A.normalizeWF(psi, **kwargs)[source]
    -

    Returns a normalized wavefunction. -Args: psi - a column vector.

    -
    - -
    -
    -WPSProtocol.Part_2A.sparseMatrices(a, **kwargs)[source]
    -

    Generates sparse matrices for a given dense matrix. -Args: a - a 2D numpy array

    -
    - -
    -
    -WPSProtocol.Part_2A.tensorOperators(matrix2D, **kwargs)[source]
    -

    Returns tensor product of an operator acting on specific qubits on the system. -Args: matrix2D - a 2X2 dim numpy array. -kwargs: a - no. of sites to the left of the matrix2D, -b - no.of sites to the right of the matrix2D.

    -
    - -
    -
    -WPSProtocol.Part_2A.utimeOpH(params, **kwargs)[source]
    -

    Returns list of time evolution of the Hamiltonian for discrete time steps, and list of time_steps. -kwargs: H [Required] Hamiltonian.

    -
    - +
    +

    WPSProtocol.Part_2A module

    Module contents

    diff --git a/docs/build/html/api/modules.html b/docs/build/html/api/modules.html index 5473cd5..0052d0e 100644 --- a/docs/build/html/api/modules.html +++ b/docs/build/html/api/modules.html @@ -97,19 +97,7 @@

    WPSProtocolWPSresource_Hamiltonian_TimeEvolOp_IsingType() -
  • WPSProtocol.Part_2A module -
  • +
  • WPSProtocol.Part_2A module
  • Module contents
  • diff --git a/docs/build/html/genindex.html b/docs/build/html/genindex.html index fc1f3e3..06a46b4 100644 --- a/docs/build/html/genindex.html +++ b/docs/build/html/genindex.html @@ -73,42 +73,19 @@

    Index

    - A - | H - | I + I | M | N | S | T - | U | W
    -

    A

    - - -
    - -

    H

    - - -
    -

    I

    @@ -124,8 +101,6 @@

    M

  • WPSProtocol.InitialFunctions
  • WPSProtocol.Module_WalshPSeq -
  • -
  • WPSProtocol.Part_2A
  • @@ -135,11 +110,7 @@

    N

    @@ -147,11 +118,7 @@

    S

    @@ -159,26 +126,6 @@

    T

    - -
    - -

    U

    - -
    @@ -215,13 +162,6 @@

    W

    -
  • - WPSProtocol.Part_2A - -
  • WPSresource_Hamiltonian_TimeEvolOp_IsingType() (in module WPSProtocol.Module_WalshPSeq) diff --git a/docs/build/html/objects.inv b/docs/build/html/objects.inv index bcdfa82..073420c 100644 --- a/docs/build/html/objects.inv +++ b/docs/build/html/objects.inv @@ -2,4 +2,8 @@ # Project: WalshPulSeqProtocol # Version: # The remainder of this file is compressed using zlib. -xڭMO0 A qZ8e@+Ӛ."CN_O@k.Ue}i&ĐӛȮh~rIq 6s3W*w B9H 8j0c*Kfр#syn֮~|({R档5GTa1/=qКg$:ԠMArHqP6rU.7$O0.;[}4q;dhw2bQYږ؀p$ilHp0]:R֡*WZso̺bRP5_! C}*s+tQ_?k^G۫HQ$9b~T$]KjI%Q9h|87.~5{?dƭj}yo \ No newline at end of file +xڭN0y +#8WD!U#8Kca{ )M|ܢGf%[Œ[mRy%/^4j^095 4d}rw{*&7(Q.XP kˡxbJHZ0=SdN1dO Η9I{Ȱ01Cp|M֠.3H +2X6؟ds$G#1ղ j3ڑR+О.v#SMn [M{Y^c-zQC?} \ No newline at end of file diff --git a/docs/build/html/py-modindex.html b/docs/build/html/py-modindex.html index 96df74c..8d32cb7 100644 --- a/docs/build/html/py-modindex.html +++ b/docs/build/html/py-modindex.html @@ -99,11 +99,6 @@

    Python Module Index

        WPSProtocol.Module_WalshPSeq - - -     - WPSProtocol.Part_2A - diff --git a/docs/build/html/searchindex.js b/docs/build/html/searchindex.js index c67204c..1f81e83 100644 --- a/docs/build/html/searchindex.js +++ b/docs/build/html/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["api/WPSProtocol", "api/modules", "index"], "filenames": ["api\\WPSProtocol.rst", "api\\modules.rst", "index.rst"], "titles": ["WPSProtocol package", "WPSProtocol", "Welcome to WalshPulSeqProtocol's documentation!"], "terms": {"packag": [1, 2], "submodul": 1, "initialfunct": 1, "modul": [1, 2], "module_rotationangleerrorsdoubleaverag": [], "module_walshpseq": 1, "part_2a": 1, "testingfil": [], "content": 1, "wpsprotocol": 2, "index": [0, 2], "search": 2, "page": 2, "creat": 0, "mon": 0, "jun": 0, "3": 0, "16": 0, "27": 0, "28": 0, "2024": 0, "author": 0, "jessica": 0, "initialv": [0, 1], "param": 0, "kwarg": 0, "sourc": 0, "initi": 0, "initial_wavefunct": 0, "": 0, "normal": 0, "form": 0, "base": 0, "number": 0, "qubit": 0, "return": 0, "n": 0, "length": 0, "puls": 0, "sequenc": 0, "total": 0, "r": 0, "coupl": 0, "constant": 0, "gener": 0, "randomli": 0, "op": 0, "oph": 0, "psi_nmn": 0, "wavefunct": 0, "from": 0, "gaussian": 0, "distribut": 0, "invers": 0, "alpha": 0, "extent": 0, "which": 0, "can": 0, "interact": 0, "arg": 0, "dictionari": 0, "normalizewf": [0, 1], "psi": 0, "column": 0, "vector": 0, "sparsematric": [0, 1], "spars": 0, "matric": 0, "given": 0, "dens": 0, "matrix": 0, "2d": 0, "numpi": 0, "arrai": 0, "tensoroper": [0, 1], "matrix2d": 0, "tensor": 0, "product": 0, "an": 0, "oper": 0, "act": 0, "specif": 0, "system": 0, "2x2": 0, "dim": 0, "site": 0, "left": 0, "b": 0, "right": 0, "thu": 0, "6": 0, "11": 0, "48": 0, "00": 0, "walsh": 0, "dynam": 0, "decoupl": 0, "long": 0, "rang": 0, "wf_condit": [0, 1], "tupleprdt": 0, "i": 0, "list": 0, "tupl": 0, "sign": 0, "wxi": 0, "wyi": 0, "pauli": 0, "depend": 0, "eq": 0, "8": 0, "paper": 0, "wf_gener": [0, 1], "w_x": 0, "w_y": 0, "requir": 0, "one": 0, "element": 0, "consist": 0, "x": 0, "y": 0, "part": 0, "q": 0, "option": 0, "give": 0, "time": 0, "h": 0, "ha": 0, "itself": 0, "us": 0, "wf": 0, "highest": 0, "wx": 0, "wy": 0, "lstpaulop": 0, "w": 0, "associ": 0, "wf_wilist": [0, 1], "each": 0, "pseq": 0, "wpseq_timeevolop": [0, 1], "To": 0, "input": 0, "ani": 0, "hamiltonian": 0, "other": 0, "than": 0, "xy": 0, "hr": 0, "unitari": 0, "evolut": 0, "per": 0, "eq1": 0, "interv": 0, "\u03c4": 0, "step": 0, "wpsresource_hamiltonian_timeevolop_isingtyp": [0, 1], "resourc": 0, "its": 0, "h_nois": [0, 1], "type": 0, "z": 0, "For": 0, "eg": 0, "timeevolopfortfh": [0, 1], "tfh": 0, "toggl": 0, "frame": 0, "togglingframeh": [0, 1], "complet": 0, "togglingframe_is": [0, 1], "Ising": 0, "model": 0, "avghfromtogglingframeh": [0, 1], "averag": 0, "utimeoph": [0, 1], "discret": 0, "time_step": 0}, "objects": {"": [[0, 0, 0, "-", "WPSProtocol"]], "WPSProtocol": [[0, 0, 0, "-", "InitialFunctions"], [0, 0, 0, "-", "Module_WalshPSeq"], [0, 0, 0, "-", "Part_2A"]], "WPSProtocol.InitialFunctions": [[0, 1, 1, "", "initialVals"], [0, 1, 1, "", "normalizeWF"], [0, 1, 1, "", "sparseMatrices"], [0, 1, 1, "", "tensorOperators"]], "WPSProtocol.Module_WalshPSeq": [[0, 1, 1, "", "WF_Conditions"], [0, 1, 1, "", "WF_Generate"], [0, 1, 1, "", "WF_WIList"], [0, 1, 1, "", "WPSeq_TimeEvolOp"], [0, 1, 1, "", "WPSresource_Hamiltonian_TimeEvolOp_IsingType"]], "WPSProtocol.Part_2A": [[0, 1, 1, "", "H_noise"], [0, 1, 1, "", "TimeEvolOpForTFH"], [0, 1, 1, "", "TogglingFrameH"], [0, 1, 1, "", "TogglingFrame_Ising"], [0, 1, 1, "", "avgHFromTogglingFrameH"], [0, 1, 1, "", "initialVals"], [0, 1, 1, "", "normalizeWF"], [0, 1, 1, "", "sparseMatrices"], [0, 1, 1, "", "tensorOperators"], [0, 1, 1, "", "utimeOpH"]]}, "objtypes": {"0": "py:module", "1": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"]}, "titleterms": {"wpsprotocol": [0, 1], "packag": 0, "submodul": 0, "initialfunct": 0, "modul": 0, "module_rotationangleerrorsdoubleaverag": [], "module_walshpseq": 0, "part_2a": 0, "testingfil": [], "content": [0, 2], "welcom": 2, "walshpulseqprotocol": 2, "": 2, "document": 2, "indic": 2, "tabl": 2}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.todo": 2, "sphinx.ext.viewcode": 1, "sphinx": 58}, "alltitles": {"WPSProtocol package": [[0, "wpsprotocol-package"]], "Submodules": [[0, "submodules"]], "WPSProtocol.InitialFunctions module": [[0, "module-WPSProtocol.InitialFunctions"]], "WPSProtocol.Module_WalshPSeq module": [[0, "module-WPSProtocol.Module_WalshPSeq"]], "WPSProtocol.Part_2A module": [[0, "module-WPSProtocol.Part_2A"]], "Module contents": [[0, "module-WPSProtocol"]], "WPSProtocol": [[1, "wpsprotocol"]], "Welcome to WalshPulSeqProtocol's documentation!": [[2, "welcome-to-walshpulseqprotocol-s-documentation"]], "Contents:": [[2, null]], "Indices and tables": [[2, "indices-and-tables"]]}, "indexentries": {"h_noise() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.H_noise"]], "timeevolopfortfh() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.TimeEvolOpForTFH"]], "togglingframeh() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.TogglingFrameH"]], "togglingframe_ising() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.TogglingFrame_Ising"]], "wf_conditions() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WF_Conditions"]], "wf_generate() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WF_Generate"]], "wf_wilist() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WF_WIList"]], "wpsprotocol": [[0, "module-WPSProtocol"]], "wpsprotocol.initialfunctions": [[0, "module-WPSProtocol.InitialFunctions"]], "wpsprotocol.module_walshpseq": [[0, "module-WPSProtocol.Module_WalshPSeq"]], "wpsprotocol.part_2a": [[0, "module-WPSProtocol.Part_2A"]], "wpseq_timeevolop() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WPSeq_TimeEvolOp"]], "wpsresource_hamiltonian_timeevolop_isingtype() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WPSresource_Hamiltonian_TimeEvolOp_IsingType"]], "avghfromtogglingframeh() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.avgHFromTogglingFrameH"]], "initialvals() (in module wpsprotocol.initialfunctions)": [[0, "WPSProtocol.InitialFunctions.initialVals"]], "initialvals() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.initialVals"]], "module": [[0, "module-WPSProtocol"], [0, "module-WPSProtocol.InitialFunctions"], [0, "module-WPSProtocol.Module_WalshPSeq"], [0, "module-WPSProtocol.Part_2A"]], "normalizewf() (in module wpsprotocol.initialfunctions)": [[0, "WPSProtocol.InitialFunctions.normalizeWF"]], "normalizewf() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.normalizeWF"]], "sparsematrices() (in module wpsprotocol.initialfunctions)": [[0, "WPSProtocol.InitialFunctions.sparseMatrices"]], "sparsematrices() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.sparseMatrices"]], "tensoroperators() (in module wpsprotocol.initialfunctions)": [[0, "WPSProtocol.InitialFunctions.tensorOperators"]], "tensoroperators() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.tensorOperators"]], "utimeoph() (in module wpsprotocol.part_2a)": [[0, "WPSProtocol.Part_2A.utimeOpH"]]}}) \ No newline at end of file +Search.setIndex({"docnames": ["api/WPSProtocol", "api/modules", "index"], "filenames": ["api\\WPSProtocol.rst", "api\\modules.rst", "index.rst"], "titles": ["WPSProtocol package", "WPSProtocol", "Welcome to WalshPulSeqProtocol's documentation!"], "terms": {"packag": [1, 2], "submodul": 1, "initialfunct": 1, "modul": [1, 2], "module_rotationangleerrorsdoubleaverag": [], "module_walshpseq": 1, "part_2a": 1, "testingfil": [], "content": 1, "wpsprotocol": 2, "index": [0, 2], "search": 2, "page": 2, "creat": 0, "mon": 0, "jun": 0, "3": 0, "16": 0, "27": 0, "28": 0, "2024": 0, "author": 0, "jessica": 0, "initialv": [0, 1], "param": 0, "kwarg": 0, "sourc": 0, "initi": 0, "initial_wavefunct": 0, "": 0, "normal": 0, "form": 0, "base": 0, "number": 0, "qubit": 0, "return": 0, "n": 0, "length": 0, "puls": 0, "sequenc": 0, "total": 0, "r": 0, "coupl": 0, "constant": 0, "gener": 0, "randomli": 0, "op": 0, "oph": 0, "psi_nmn": 0, "wavefunct": 0, "from": 0, "gaussian": 0, "distribut": 0, "invers": 0, "alpha": 0, "extent": 0, "which": 0, "can": 0, "interact": 0, "arg": 0, "dictionari": 0, "normalizewf": [0, 1], "psi": 0, "column": 0, "vector": 0, "sparsematric": [0, 1], "spars": 0, "matric": 0, "given": 0, "dens": 0, "matrix": 0, "2d": 0, "numpi": 0, "arrai": 0, "tensoroper": [0, 1], "matrix2d": 0, "tensor": 0, "product": 0, "an": 0, "oper": 0, "act": 0, "specif": 0, "system": 0, "2x2": 0, "dim": 0, "site": 0, "left": 0, "b": 0, "right": 0, "thu": 0, "6": 0, "11": 0, "48": 0, "00": 0, "walsh": 0, "dynam": 0, "decoupl": 0, "long": 0, "rang": 0, "wf_condit": [0, 1], "tupleprdt": 0, "i": 0, "list": 0, "tupl": 0, "sign": 0, "wxi": 0, "wyi": 0, "pauli": 0, "depend": 0, "eq": 0, "8": 0, "paper": 0, "wf_gener": [0, 1], "w_x": 0, "w_y": 0, "requir": 0, "one": 0, "element": 0, "consist": 0, "x": 0, "y": 0, "part": 0, "q": 0, "option": 0, "give": 0, "time": 0, "h": 0, "ha": 0, "itself": 0, "us": 0, "wf": 0, "highest": 0, "wx": 0, "wy": 0, "lstpaulop": 0, "w": 0, "associ": 0, "wf_wilist": [0, 1], "each": 0, "pseq": 0, "wpseq_timeevolop": [0, 1], "To": 0, "input": 0, "ani": 0, "hamiltonian": 0, "other": 0, "than": 0, "xy": 0, "hr": 0, "unitari": 0, "evolut": 0, "per": 0, "eq1": 0, "interv": 0, "\u03c4": 0, "step": 0, "wpsresource_hamiltonian_timeevolop_isingtyp": [0, 1], "resourc": 0, "its": 0, "h_nois": [], "type": [], "z": [], "For": [], "eg": [], "timeevolopfortfh": [], "tfh": [], "toggl": [], "frame": [], "togglingframeh": [], "complet": [], "togglingframe_is": [], "Ising": [], "model": [], "avghfromtogglingframeh": [], "averag": [], "utimeoph": [], "discret": [], "time_step": []}, "objects": {"": [[0, 0, 0, "-", "WPSProtocol"]], "WPSProtocol": [[0, 0, 0, "-", "InitialFunctions"], [0, 0, 0, "-", "Module_WalshPSeq"]], "WPSProtocol.InitialFunctions": [[0, 1, 1, "", "initialVals"], [0, 1, 1, "", "normalizeWF"], [0, 1, 1, "", "sparseMatrices"], [0, 1, 1, "", "tensorOperators"]], "WPSProtocol.Module_WalshPSeq": [[0, 1, 1, "", "WF_Conditions"], [0, 1, 1, "", "WF_Generate"], [0, 1, 1, "", "WF_WIList"], [0, 1, 1, "", "WPSeq_TimeEvolOp"], [0, 1, 1, "", "WPSresource_Hamiltonian_TimeEvolOp_IsingType"]]}, "objtypes": {"0": "py:module", "1": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"]}, "titleterms": {"wpsprotocol": [0, 1], "packag": 0, "submodul": 0, "initialfunct": 0, "modul": 0, "module_rotationangleerrorsdoubleaverag": [], "module_walshpseq": 0, "part_2a": 0, "testingfil": [], "content": [0, 2], "welcom": 2, "walshpulseqprotocol": 2, "": 2, "document": 2, "indic": 2, "tabl": 2}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.todo": 2, "sphinx.ext.viewcode": 1, "sphinx": 58}, "alltitles": {"WPSProtocol": [[1, "wpsprotocol"]], "Welcome to WalshPulSeqProtocol's documentation!": [[2, "welcome-to-walshpulseqprotocol-s-documentation"]], "Contents:": [[2, null]], "Indices and tables": [[2, "indices-and-tables"]], "WPSProtocol package": [[0, "wpsprotocol-package"]], "Submodules": [[0, "submodules"]], "WPSProtocol.InitialFunctions module": [[0, "module-WPSProtocol.InitialFunctions"]], "WPSProtocol.Module_WalshPSeq module": [[0, "module-WPSProtocol.Module_WalshPSeq"]], "WPSProtocol.Part_2A module": [[0, "wpsprotocol-part-2a-module"]], "Module contents": [[0, "module-WPSProtocol"]]}, "indexentries": {"wf_conditions() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WF_Conditions"]], "wf_generate() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WF_Generate"]], "wf_wilist() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WF_WIList"]], "wpsprotocol": [[0, "module-WPSProtocol"]], "wpsprotocol.initialfunctions": [[0, "module-WPSProtocol.InitialFunctions"]], "wpsprotocol.module_walshpseq": [[0, "module-WPSProtocol.Module_WalshPSeq"]], "wpseq_timeevolop() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WPSeq_TimeEvolOp"]], "wpsresource_hamiltonian_timeevolop_isingtype() (in module wpsprotocol.module_walshpseq)": [[0, "WPSProtocol.Module_WalshPSeq.WPSresource_Hamiltonian_TimeEvolOp_IsingType"]], "initialvals() (in module wpsprotocol.initialfunctions)": [[0, "WPSProtocol.InitialFunctions.initialVals"]], "module": [[0, "module-WPSProtocol"], [0, "module-WPSProtocol.InitialFunctions"], [0, "module-WPSProtocol.Module_WalshPSeq"]], "normalizewf() (in module wpsprotocol.initialfunctions)": [[0, "WPSProtocol.InitialFunctions.normalizeWF"]], "sparsematrices() (in module wpsprotocol.initialfunctions)": [[0, "WPSProtocol.InitialFunctions.sparseMatrices"]], "tensoroperators() (in module wpsprotocol.initialfunctions)": [[0, "WPSProtocol.InitialFunctions.tensorOperators"]]}}) \ No newline at end of file diff --git a/src/WPSProtocol/.ipynb_checkpoints/InitialFunctions-checkpoint.py b/src/WPSProtocol/.ipynb_checkpoints/InitialFunctions-checkpoint.py index fb0365f..e8a328e 100644 --- a/src/WPSProtocol/.ipynb_checkpoints/InitialFunctions-checkpoint.py +++ b/src/WPSProtocol/.ipynb_checkpoints/InitialFunctions-checkpoint.py @@ -4,30 +4,30 @@ @author: Jessica """ -# import numpy as np -# from numpy import linalg -# from scipy import linalg as splinalg -# import matplotlib.pyplot as plt -# from scipy import sparse as sp -# import scipy.sparse.linalg -# from functools import reduce -# import itertools -# from scipy import linalg -# from scipy.linalg import expm +import numpy as np +from numpy import linalg +from scipy import linalg as splinalg +import matplotlib.pyplot as plt +from scipy import sparse as sp +import scipy.sparse.linalg +from functools import reduce +import itertools +from scipy import linalg +from scipy.linalg import expm -# # Pauli Matrices -# sigmaZ = sp.csc_matrix([[1, 0], [0, -1]]) -# sigmaX = sp.csc_matrix([[0, 1], [1, 0]]) -# sigmaY = sp.csc_matrix([[0, -1j], [1j, 0]]) -# sigmaI = sp.csc_matrix([[1, 0], [0, 1]]) -# sigmaH = sp.csc_matrix([[1, 1], [1, -1]]) +# Pauli Matrices +sigmaZ = sp.csc_matrix([[1, 0], [0, -1]]) +sigmaX = sp.csc_matrix([[0, 1], [1, 0]]) +sigmaY = sp.csc_matrix([[0, -1j], [1j, 0]]) +sigmaI = sp.csc_matrix([[1, 0], [0, 1]]) +sigmaH = sp.csc_matrix([[1, 1], [1, -1]]) -# Z = np.array([[1, 0], [0, -1]]) -# X = np.array([[0, 1], [1, 0]]) -# Y = np.array([[0, -1j], [1j, 0]]) -# I = np.array([[1, 0], [0, 1]]) +Z = np.array([[1, 0], [0, -1]]) +X = np.array([[0, 1], [1, 0]]) +Y = np.array([[0, -1j], [1j, 0]]) +I = np.array([[1, 0], [0, 1]]) -# H = np.array([[1, 1], [1, -1]]) +H = np.array([[1, 1], [1, -1]]) def normalizeWF(psi,**kwargs): ''' diff --git a/src/WPSProtocol/.ipynb_checkpoints/Module_WalshPSeq-checkpoint.py b/src/WPSProtocol/.ipynb_checkpoints/Module_WalshPSeq-checkpoint.py index 95cfef0..14c9c69 100644 --- a/src/WPSProtocol/.ipynb_checkpoints/Module_WalshPSeq-checkpoint.py +++ b/src/WPSProtocol/.ipynb_checkpoints/Module_WalshPSeq-checkpoint.py @@ -7,22 +7,22 @@ @author: Jessica """ -# import numpy as np -# from numpy import linalg -# from scipy import linalg as splinalg -# import matplotlib.pyplot as plt -# from scipy import sparse as sp -# import scipy.sparse.linalg -# from functools import reduce -# import itertools -# from scipy import linalg -# from scipy.linalg import expm +import numpy as np +from numpy import linalg +from scipy import linalg as splinalg +import matplotlib.pyplot as plt +from scipy import sparse as sp +import scipy.sparse.linalg +from functools import reduce +import itertools +from scipy import linalg +from scipy.linalg import expm -# Z = np.array([[1, 0], [0, -1]]) -# X = np.array([[0, 1], [1, 0]]) -# Y = np.array([[0, -1j], [1j, 0]]) -# I = np.array([[1, 0], [0, 1]]) -# H = np.array([[1, 1], [1, -1]]) +Z = np.array([[1, 0], [0, -1]]) +X = np.array([[0, 1], [1, 0]]) +Y = np.array([[0, -1j], [1j, 0]]) +I = np.array([[1, 0], [0, 1]]) +H = np.array([[1, 1], [1, -1]]) def WF_Conditions(tupleprdt, **kwargs): diff --git a/src/WPSProtocol/.ipynb_checkpoints/Part_2A-checkpoint.py b/src/WPSProtocol/.ipynb_checkpoints/Part_2A-checkpoint.py index e738032..c126a7f 100644 --- a/src/WPSProtocol/.ipynb_checkpoints/Part_2A-checkpoint.py +++ b/src/WPSProtocol/.ipynb_checkpoints/Part_2A-checkpoint.py @@ -15,7 +15,7 @@ from scipy.linalg import expm -Pauli Matrices +# Pauli Matrices sigmaZ = sp.csc_matrix([[1, 0], [0, -1]]) sigmaX = sp.csc_matrix([[0, 1], [1, 0]]) sigmaY = sp.csc_matrix([[0, -1j], [1j, 0]]) diff --git a/src/WPSProtocol/InitialFunctions.py b/src/WPSProtocol/InitialFunctions.py index fb0365f..e8a328e 100644 --- a/src/WPSProtocol/InitialFunctions.py +++ b/src/WPSProtocol/InitialFunctions.py @@ -4,30 +4,30 @@ @author: Jessica """ -# import numpy as np -# from numpy import linalg -# from scipy import linalg as splinalg -# import matplotlib.pyplot as plt -# from scipy import sparse as sp -# import scipy.sparse.linalg -# from functools import reduce -# import itertools -# from scipy import linalg -# from scipy.linalg import expm +import numpy as np +from numpy import linalg +from scipy import linalg as splinalg +import matplotlib.pyplot as plt +from scipy import sparse as sp +import scipy.sparse.linalg +from functools import reduce +import itertools +from scipy import linalg +from scipy.linalg import expm -# # Pauli Matrices -# sigmaZ = sp.csc_matrix([[1, 0], [0, -1]]) -# sigmaX = sp.csc_matrix([[0, 1], [1, 0]]) -# sigmaY = sp.csc_matrix([[0, -1j], [1j, 0]]) -# sigmaI = sp.csc_matrix([[1, 0], [0, 1]]) -# sigmaH = sp.csc_matrix([[1, 1], [1, -1]]) +# Pauli Matrices +sigmaZ = sp.csc_matrix([[1, 0], [0, -1]]) +sigmaX = sp.csc_matrix([[0, 1], [1, 0]]) +sigmaY = sp.csc_matrix([[0, -1j], [1j, 0]]) +sigmaI = sp.csc_matrix([[1, 0], [0, 1]]) +sigmaH = sp.csc_matrix([[1, 1], [1, -1]]) -# Z = np.array([[1, 0], [0, -1]]) -# X = np.array([[0, 1], [1, 0]]) -# Y = np.array([[0, -1j], [1j, 0]]) -# I = np.array([[1, 0], [0, 1]]) +Z = np.array([[1, 0], [0, -1]]) +X = np.array([[0, 1], [1, 0]]) +Y = np.array([[0, -1j], [1j, 0]]) +I = np.array([[1, 0], [0, 1]]) -# H = np.array([[1, 1], [1, -1]]) +H = np.array([[1, 1], [1, -1]]) def normalizeWF(psi,**kwargs): ''' diff --git a/src/WPSProtocol/Module_WalshPSeq.py b/src/WPSProtocol/Module_WalshPSeq.py index 95cfef0..14c9c69 100644 --- a/src/WPSProtocol/Module_WalshPSeq.py +++ b/src/WPSProtocol/Module_WalshPSeq.py @@ -7,22 +7,22 @@ @author: Jessica """ -# import numpy as np -# from numpy import linalg -# from scipy import linalg as splinalg -# import matplotlib.pyplot as plt -# from scipy import sparse as sp -# import scipy.sparse.linalg -# from functools import reduce -# import itertools -# from scipy import linalg -# from scipy.linalg import expm +import numpy as np +from numpy import linalg +from scipy import linalg as splinalg +import matplotlib.pyplot as plt +from scipy import sparse as sp +import scipy.sparse.linalg +from functools import reduce +import itertools +from scipy import linalg +from scipy.linalg import expm -# Z = np.array([[1, 0], [0, -1]]) -# X = np.array([[0, 1], [1, 0]]) -# Y = np.array([[0, -1j], [1j, 0]]) -# I = np.array([[1, 0], [0, 1]]) -# H = np.array([[1, 1], [1, -1]]) +Z = np.array([[1, 0], [0, -1]]) +X = np.array([[0, 1], [1, 0]]) +Y = np.array([[0, -1j], [1j, 0]]) +I = np.array([[1, 0], [0, 1]]) +H = np.array([[1, 1], [1, -1]]) def WF_Conditions(tupleprdt, **kwargs): diff --git a/src/WPSProtocol/Part_2A.py b/src/WPSProtocol/Part_2A.py index e738032..c126a7f 100644 --- a/src/WPSProtocol/Part_2A.py +++ b/src/WPSProtocol/Part_2A.py @@ -15,7 +15,7 @@ from scipy.linalg import expm -Pauli Matrices +# Pauli Matrices sigmaZ = sp.csc_matrix([[1, 0], [0, -1]]) sigmaX = sp.csc_matrix([[0, 1], [1, 0]]) sigmaY = sp.csc_matrix([[0, -1j], [1j, 0]]) diff --git a/src/WPSProtocol/__pycache__/InitialFunctions.cpython-38.pyc b/src/WPSProtocol/__pycache__/InitialFunctions.cpython-38.pyc index dd1bba0..a65592a 100644 Binary files a/src/WPSProtocol/__pycache__/InitialFunctions.cpython-38.pyc and b/src/WPSProtocol/__pycache__/InitialFunctions.cpython-38.pyc differ diff --git a/src/WPSProtocol/__pycache__/Module_WalshPSeq.cpython-38.pyc b/src/WPSProtocol/__pycache__/Module_WalshPSeq.cpython-38.pyc index e1adb82..97a3d45 100644 Binary files a/src/WPSProtocol/__pycache__/Module_WalshPSeq.cpython-38.pyc and b/src/WPSProtocol/__pycache__/Module_WalshPSeq.cpython-38.pyc differ