# Tag Info

Accepted

### Is it possible to modify the QFT circuit to use only 1-qubit gates?

This is called qubit recycling (when combined with introducing the qubits-to-QFT one by one). All you have to do is take the normal circuit, measure each qubit immediately after it gets Hadamard'ed, ...
• 35.3k

### Qiskit Runtime forbids reset gate?

Indeed, the problem is that initialize introduces a reset (see docs). ...
• 5,743

### How to create the state $(n!)^{-\frac{1}{2}} \sum_{\pi \in S_n} | \pi, \pi (G) \rangle$ when $G$ is an undirected graph and $\pi$ a permutation

Surprisingly, the way to make a uniform superposition of all permutations is by using a sorting network. You make random shuffle states by sorting! Weird, right? This was figured out in "Improved ...
• 35.3k
Accepted

1 vote
Accepted

### How does syndrome extraction in bit-flip codes using stabilizers work?

The state is not $-\vert ++\rangle\vert 100\rangle$ after the second set of gates. That would be true if you applied $Z$ gates but you are applying controlled $Z$ gates. Let's just look at the ...
• 692

Only top scored, non community-wiki answers of a minimum length are eligible