Hope I am not overreaching with the questions. I am trying my best with all the tests.

##################

# YOUR CODE HERE #

##################

b=pair_circuit(x_tilde, combo)

a=np.kron(x_tilde,b)

c=np.kron(x_tilde,[0,1])

np.isclose(a,c)

# A3.2 Pair programming

@Vedant_Dwivedi, I think probably you are overreaching the question. All you need to do is to compare the output from `pair_circuit(x_tilde, combo)`

with the expected output: `np.array([0., 1.])`

using `np.isclose()`

. End your search once this is true.

That’s right @gidu!

You don’t even need to use `np.isclose()`

with the full array. Remember that `pair_circuit()`

gives you the probabilities of measuring ‘0’ and ‘1’ in the last wire. When the probability of measuring ‘1’ is high (close to 1) it means that we have a solution. So you really just need to exit the loop when you get a solution.

I hope this helps @Vedant_Dwivedi!