Skip to content

Requesting help with time analysis of quantum circuits #69

Closed Answered by BoxiLi
FarooqKhaleel asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, now I roughly get it.

As far as I understand, you want to give the circuit different inputs and get different outputs. qutip-qip don't have this build-in. The method implemented in qutip-qip only takes one input and gives you one output. So one run at a time. However, if your circuit does not change, then I feel like a for loop should be able to solve your question.

You could define a sequence of input states and run the circuit for each of them

time_sequence = [0, 1, 2, ,3 ,4, 5 ...]
input_state_sequence = [state0, state1,state2, ...]
output_state_sequence = []
for input_state in input_state_sequence :
    output = circuit.run(input_state)
    output_state_sequence .append(output)

An…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BoxiLi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FarooqKhaleel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants