'Represent the OracleGate in the computational basis.'

def _represent_ZGate(self, basis, **options):

    nbasis = (2 ** self.nqubits)
    matrixOracle = eye(nbasis)
    for i in range(nbasis):
        if self.search_function(IntQubit(i, self.nqubits)):
            matrixOracle[(i, i)] = NegativeOne()
    return matrixOracle
