Parameterized 4-qubit entanglement circuit

f8aaf98b-f33b-4c79-900a-20ff6f359fdd
3.0
Description

This circuit creates a superposition of two qubits and applies a parameterized controlled rotation and a controlled NOT gate to entangle four qubits.

Qiskit Circuit Code
Python
```python
from qiskit import QuantumCircuit
from qiskit.circuit import Parameter

# Define a variational parameter
theta = Parameter('θ')

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

# Prepare a superposition on qubits 0 and 1
qc.h([0, 1])

# Apply a parameterized entangling operation
qc.crx(theta, 0, 2)
qc.crx(theta, 1, 3)

# Apply entangling gates between qubits 2 and 3
qc.cx(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:

The number of values (0) does not match the number of parameters (1) for the circuit. Note that if you want to run a single pub, you need to wrap it with `[]` like `sampler.run([(circuit, param_values)])` instead of `sampler.run((circuit, param_values))`.

Raw Result Data
Download Results
Back to Home