class_docstr: General n qubit W Gate in Grover's algorithm.
  
  The gate performs the operation ``2|phi><phi| - 1`` on some qubits.
  ``|phi> = (tensor product of n Hadamards)*(|0> with n qubits)``
  
  Parameters
  ==========
  
  nqubits : int
      The number of qubits to operate on
class_docstr_tok: ["General","n","qubit","W","Gate","in","Grover","'s","algorithm",".","The","gate","performs","the","operation","``","2|phi",">","<","phi|","-","1","``","on","some","qubits",".","``","|phi",">","=","(","tensor","product","of","n","Hadamards",")","*","(","|0",">","with","n","qubits",")","``","Parameters","==========","nqubits",":","int","The","number","of","qubits","to","operate","on"]
code: def targets(self):
      return sympify(tuple(reversed(range(self.args[0]))))
  
imports: from sympy.core.numbers import pi
  from sympy.core.sympify import sympify
  from sympy.core.basic import Atom
  from sympy.functions.elementary.integers import floor
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.matrices.dense import eye
  from sympy.core.numbers import NegativeOne
  from sympy.physics.quantum.qapply import qapply
  from sympy.physics.quantum.qexpr import QuantumError
  from sympy.physics.quantum.hilbert import ComplexSpace
  from sympy.physics.quantum.operator import UnitaryOperator
  from sympy.physics.quantum.gate import Gate
  from sympy.physics.quantum.qubit import IntQubit
label_desc: Use image node_id 2 for calling the WGate obj's underlying member method code with example usage: obj.targets() and returns: sympify