import numpy as np
import matplotlib.pyplot as plt

k_array = np.loadtxt("k_array_ref_gan.txt")
print(k_array)
print(k_array.shape)
random_matrix = np.random.randint(2, size=k_array.shape)
for x in range(8):
    random_matrix = random_matrix * np.random.randint(2, size=k_array.shape)
print(random_matrix)
print(random_matrix.shape)

# Display matrix
plt.matshow(k_array*random_matrix)
plt.show()

cda68256b48b2c469c1555b16e3482edcfcc9185
<mask token>

<mask token>
print(k_array)
print(k_array.shape)
<mask token>
for x in range(8):
    random_matrix = random_matrix * np.random.randint(2, size=k_array.shape)
print(random_matrix)
print(random_matrix.shape)
plt.matshow(k_array * random_matrix)
plt.show()

<mask token>
k_array = np.loadtxt('k_array_ref_gan.txt')
print(k_array)
print(k_array.shape)
random_matrix = np.random.randint(2, size=k_array.shape)
for x in range(8):
    random_matrix = random_matrix * np.random.randint(2, size=k_array.shape)
print(random_matrix)
print(random_matrix.shape)
plt.matshow(k_array * random_matrix)
plt.show()

import numpy as np
import matplotlib.pyplot as plt
k_array = np.loadtxt('k_array_ref_gan.txt')
print(k_array)
print(k_array.shape)
random_matrix = np.random.randint(2, size=k_array.shape)
for x in range(8):
    random_matrix = random_matrix * np.random.randint(2, size=k_array.shape)
print(random_matrix)
print(random_matrix.shape)
plt.matshow(k_array * random_matrix)
plt.show()

import numpy as np
import matplotlib.pyplot as plt

k_array = np.loadtxt("k_array_ref_gan.txt")
print(k_array)
print(k_array.shape)
random_matrix = np.random.randint(2, size=k_array.shape)
for x in range(8):
    random_matrix = random_matrix * np.random.randint(2, size=k_array.shape)
print(random_matrix)
print(random_matrix.shape)

# Display matrix
plt.matshow(k_array*random_matrix)
plt.show()
