Parameterized Quantum Circuit with RX and RY Rotations

6e131b84-8298-49cc-a816-814a1fd24b26
2.0
Description

This is a variational quantum circuit that applies parameterized RX and RY rotations to three qubits, entangles them, and measures the result.

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

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

# Define parameters
theta0 = Parameter('θ0')
theta1 = Parameter('θ1')
theta2 = Parameter('θ2')

# Apply parameterized RX rotations
qc.rx(theta0, 0)
qc.rx(theta1, 1)
qc.rx(theta2, 2)

# Entangling layer
qc.cx(0, 1)
qc.cx(1, 2)

# Another layer of parameterized rotations
phi0 = Parameter('φ0')
phi1 = Parameter('φ1')
phi2 = Parameter('φ2')

qc.ry(phi0, 0)
qc.ry(phi1, 1)
qc.ry(phi2, 2)

# Measurement
qc.measure([0, 1, 2], [0, 1, 2])
```
Quantum Execution Results
ibm_brisbane
N/A
N/A shots
Execution Notice:

The number of values (0) does not match the number of parameters (6) 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