Quality factor of an arbitrary resonant circuit of angular frequency ω0 is given by
where W is energy of electromagnetic field in a circuit, and PZ is lost power in a circuit.