From 14326c2bb43b313cd887ffb5a564584bbc3dd0fc Mon Sep 17 00:00:00 2001 From: tina oberoi Date: Sun, 15 Oct 2023 16:28:06 -0500 Subject: [PATCH] Remove unnecessary files --- .../{mps_operation.py => gates.py} | 0 scratchpad/qtensor_MPS/test.py | 2 +- scratchpad/qtensor_MPS/test2.py | 29 ------------------- 3 files changed, 1 insertion(+), 30 deletions(-) rename scratchpad/qtensor_MPS/{mps_operation.py => gates.py} (100%) delete mode 100644 scratchpad/qtensor_MPS/test2.py diff --git a/scratchpad/qtensor_MPS/mps_operation.py b/scratchpad/qtensor_MPS/gates.py similarity index 100% rename from scratchpad/qtensor_MPS/mps_operation.py rename to scratchpad/qtensor_MPS/gates.py diff --git a/scratchpad/qtensor_MPS/test.py b/scratchpad/qtensor_MPS/test.py index 0a6b7ce1..ecd97a4c 100644 --- a/scratchpad/qtensor_MPS/test.py +++ b/scratchpad/qtensor_MPS/test.py @@ -1,7 +1,7 @@ import numpy as np import tensornetwork as tn import xyzpy as xyz -from mps_operation import xgate, cnot, hgate +from gates import xgate, cnot, hgate from mps import MPS def test_from_wavefunction_all_zero_state(): diff --git a/scratchpad/qtensor_MPS/test2.py b/scratchpad/qtensor_MPS/test2.py deleted file mode 100644 index 2fe17ab9..00000000 --- a/scratchpad/qtensor_MPS/test2.py +++ /dev/null @@ -1,29 +0,0 @@ -def helper(): - pass - -# Driver Code -if __name__ == '__main__': - t = int(input()) - for _ in range(t): - n, k = [int(i) for i in input().split()] - a = [int(i) for i in input().split()] - b = [int(i) for i in input().split()] - - for elem in a: - if elem not in map: - map[elem] = 1 - map[elem] += 1 - - n = map.keys() #distinct elem in a - - cnt = 0 # elements in b not in b - temp = [] - - for elem in b: - if elem not in a: - cnt += 1 - - if cnt > k: - print() - - print(a)