Fully Connected Four-Qubit Graph State Generator

63e3f794-c21f-4f51-b847-96c6df4ca507
3.0
Description

This circuit initializes four qubits to the |+⟩ state, applies a controlled-Z gate between all pairs to create a fully connected graph state, and then measures all qubits.

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

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

# Initialize all qubits to |+⟩ state
qc.h([0, 1, 2, 3])

# Apply controlled-Z gates between every pair of qubits to create a fully connected graph state
qc.cz(0, 1)
qc.cz(0, 2)
qc.cz(0, 3)
qc.cz(1, 2)
qc.cz(1, 3)
qc.cz(2, 3)

# Measure all qubits
qc.measure([0, 1, 2, 3], [0, 1, 2, 3])
```
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