/QOSF_Mentorship_Screening_Task2

Contains code submission for the screening tasks to be completed as a part of the QOSF mentorship program.

Primary LanguageJupyter Notebook

QOSF_Mentorship_Screening_Tasks

Contains code submission for the screening tasks to be completed as a part of the QOSF mentorship program.

Completed Task 2 for this submission, the code can be accessed in the QML_Screening.ipynb file.

Task 2

Implement a circuit that returns |01> and |10> with equal probability.
Requirements :
The circuit should consist only of CNOTs, RXs and RYs.
Start from all parameters in parametric gates being equal to 0 or randomly chosen.
You should find the right set of parameters using gradient descent (you can use more advanced optimization methods if you like).
Simulations must be done with sampling (i.e. a limited number of measurements per iteration) and noise.

Compare the results for different numbers of measurements: 1, 10, 100, 1000.

Bonus question:
How to make sure you produce state |01> + |10> and not |01> - |10> ?