In complexity theory, we study the number of "steps" that an algorithm takes to answer a question of the form "is $x$ in the language $L$?".
Complexity is defined with relation to the size of the input $x$. An algorithm is typically said to be "efficient" if it terminates in a number of steps polynomial in the input length $|x|$.
In classical complexity theory, there are two model of computation: Turing machines and boolean circuits. In Turing machines, the "step" is the transition function and its complexity is how many times the machine, with its tape initialized on $x$, uses its transition function before halting in an accepting or rejecting state. In boolean circuits, the "steps" are the logical gates of the circuit (e.g. OR, AND, NOT gates). You could also care about circuit depth. Since boolean circuits take a fixed-size input, we consider families of circuits $\{C_1,C_2,\dots\}$ (one for each input size). Typically, we want a family of circuit to be uniform, i.e. there exists a poly-time Turing machine that on input $1^n$ outputs the description of $C_n$.
In quantum computing, we are typically interested in unitary transformations in the form of quantum circuits. The definition of complexity is now quite similar to that of classical circuits with a family of quantum circuits $U_1,U_2,\dots$. In the quantum setting you might also need a number (which also depends on $|x|$) of auxiliary registers initialized in state $|0\rangle$. To decide if $x\in L$, the circuit $U_{|x|}$ is applied on initial state $| x\rangle| 0^{s(|x|)}\rangle$ and the qubits are measured to get the answer.
Other metrics that people care about include space complexity, which would correspond to circuit width in the case of quantum computing. In the definition I've given, circuit width is $|x|+s(|x|)$, so efficiency would be defined $s(\cdot)$ being a polynomial.
Some quantum algorithms (most famously Shor's) alternate classical and quantum subroutines. These algorithms don't directly fit in the definition above, but it theory noting prevents one from doing the classical part in the quantum circuit with some overhead in the complexity.