Simulates a quantum circuit consisting of Hadamard, Phase and C-Not Gates, using the stabilizer formalism.