I want to figure out how to evaluate the time complexity of a quantum circuit.
An simple understanding is that if there are more quantum gates in a quantum circuit. The time complexity is higher. (under the assumption that the scale of input is fixed)
For example, I have n quibit and created a series of quantum gates. then I can write down the circuit mathematically by a series of matrix multiplication. An example is three CNOT gate one-by-one. Then the number of matrices is 3.
Now I want to evaluate the time complexity for excuting this quantum circuit(algorithm).
How to evaluate it? Can I assume that the time complexity is proportional to the number of matrices above? If so, does that mean that when I want to design an quantum algorithm, I need to consider the number of quantum gates for constructing this circuit?
But according to my understanding, an quantum algorithm is just a unitary matrix, so do I need to consider a method to decompose this matrix into the sum of as few tensor prodcuts of gates as possible. But this is a pure mathmatical question.
And I know that every unitary matrix can be decomposed to a series of basic quantum gates by the universal theorem, but I am not sure about the number of gates used for it or how to evaluate the time-complexity. And the decomposition in the proof of this theorem may not be the best decomposition.
Is my understanding of this correct or not?