Can someone specify a quantum circuit that will deterministically output the $3$-qubit $|W \rangle$ state, if the input to the circuit is $|0,0,0 \rangle$? Or, is there a quantum circuit with a different $3$-qubit input state that will output the $3$-qubit $|W \rangle$ state deterministically? I am looking for an abstract description, devoid of any physical system. If this is contained in a reference, one can just list the reference.
For those not familiar with the representation of the $3$-qubit $|W \rangle$ state in the computational basis, it is:
$$|W \rangle = \frac{1}{\sqrt{3}} \bigg( |0,0,1\rangle + |0,1,0\rangle + |1,0,0\rangle \bigg) .$$
Generalizations to the $n$-qubit case would also be greatly appreciated. For clarity on the allowable gates in the circuit, please use either $1$-qubit or $2$-qubit gates. Also, it'd be fine if the answer used a $3$-qubit gate such as Toffoli or Fredkin (and these $3$-qubit gates would not need to be further decomposed).