Quantum Fourier Transform with Swap and Measurement

2ea43b1b-e66f-42dd-b9f6-f04276caeb4b
4.0
Description

This circuit applies the Quantum Fourier Transform to 3 qubits, reverses their order, and then records the result.

Qiskit Circuit Code
Python
```python
from qiskit import *
from math import pi

# Create circuit with 3 qubits and 3 classical bits
qc = QuantumCircuit(3, 3)

# Apply Quantum Fourier Transform
qc.h(0)
qc.cp(pi/2, 0, 1)
qc.cp(pi/4, 0, 2)
qc.h(1)
qc.cp(pi/2, 1, 2)
qc.h(2)

# Swap qubits to reverse order
qc.swap(0, 2)

# Measure the qubits
qc.measure([0, 1, 2], [0, 1, 2])
```
Quantum Execution Results
ibm_kyiv
unknown
1024 shots
Measurement Counts
{
  "000": 153,
  "001": 159,
  "010": 173,
  "011": 175,
  "100": 90,
  "101": 76,
  "110": 106,
  "111": 92
}
Raw Result Data
Download Results
Back to Home