5-Qubit Hypergraph State Generation

2b25d23e-eefb-4b83-a249-cd557bd1e023
4.0
Description

This quantum circuit prepares a 5-qubit hypergraph state by first creating a superposition with Hadamard gates, then entangling the qubits using CCZ gates.

Qiskit Circuit Code
Python
```python
from qiskit import QuantumCircuit

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

# Apply Hadamard gates to all qubits to create superposition
qc.h(range(5))

# Apply CCZ gates to entangle the qubits into a 5-qubit hypergraph state

# Apply CCZ between qubits 0, 1, and 2
qc.h(2)
qc.ccx(0, 1, 2)
qc.h(2)

# Apply CCZ between qubits 1, 2, and 3
qc.h(3)
qc.ccx(1, 2, 3)
qc.h(3)

# Apply CCZ between qubits 2, 3, and 4
qc.h(4)
qc.ccx(2, 3, 4)
qc.h(4)

# Apply CCZ between qubits 3, 4, and 0
qc.h(0)
qc.ccx(3, 4, 0)
qc.h(0)

# Measure all qubits
qc.measure(range(5), range(5))
```
Quantum Execution Results
ibm_kyiv
N/A
N/A shots
Execution Notice:

'Failed to run program: \'409 Client Error: Conflict for url: https://api.quantum.ibm.com/runtime/jobs. {"errors":[{"message":"You have reached the limit of 3 pending jobs. Please wait for a job to complete or cancel one before submitting anything new.","code":3458,"solution":"Wait until some previous jobs were finished. You can cancel pending jobs to run new jobs.","more_info":"https://docs.quantum-computing.ibm.com/errors"}]}\''

Raw Result Data
Download Results
Back to Home