I am trying to improve an optimization method as describe in this paper: enter link description here

For that I need to create many random equivalent circuits. In my experiment I have 6 beam splitters and 4 phase shifters. (In case of beam splitter is not perfect or because of other noises, I will need to chance the angle of my phase shifters for finding right unitary function. For instance in the ideal case I will have U(a1,a2,a3,a4) but because of the noises I may find different U for the same angles like U'(a1,a2,a3,a4) so for finding exact U, I need the change my angle like U(a1',a2',a3,a4) or U(a1,a2',a3',a4)....)SO I need to create random circuits with these 4 phase shifters. Do we have a ready function for that in cirq? like random.circuit(parameters) How can I create random circuits with Cirq? Since I will train a neural network, I need too many circuits? Any recomandation for me?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.