Quantum Error Detection Without Using Ancilla Qubits