Cyclic Equivariant Feature Map
Translationally invariant encoding preserving cyclic (Z_n) group symmetry via ring topology.
Qubits
4
Depth
6
Total Gates
24
Simulability
Not simulable
Mathematical Formulation
Description
The Cyclic Equivariant Feature Map constructs a circuit that is equivariant under cyclic permutations of the input features. A cyclic shift σ of the input features x → (x_1, x_2, ..., x_n, x_0) results in the same cyclic shift of the quantum state, preserving the Z_n symmetry group.
Each layer applies: (1) RY rotations encoding features x_i on each qubit, (2) RZZ entangling gates in a ring topology connecting (0,1), (1,2), ..., (n-1,0) with a fixed coupling strength, and (3) RX rotations with a fixed angle (π/6) for basis mixing. The ring topology and uniform coupling ensure that the circuit commutes with cyclic permutation operators.
This encoding is ideal for data with periodic or cyclic structure, such as time series with seasonal patterns, molecular ring structures, or any problem where features have a natural circular ordering.
Circuit Diagram
Property Radar
Properties
Resource Scaling
How resource requirements grow with the number of input features.
| Features | Qubits | Depth | Gates | 2Q Gates |
|---|---|---|---|---|
| 2 | 2 | 6 | 12 | 4 |
| 4 | 4 | 6 | 24 | 8 |
| 8 | 8 | 6 | 48 | 16 |
| 16 | 16 | 6 | 96 | 32 |
Code Examples
Cyclic equivariant encoding with PennyLane using ring topology RZZ gates.
from encoding_atlas import CyclicEquivariantFeatureMap
import pennylane as qml
import numpy as np
enc = CyclicEquivariantFeatureMap(n_features=4, reps=2)
dev = qml.device("default.qubit", wires=enc.n_qubits)
@qml.qnode(dev)
def circuit(x):
enc.get_circuit(x, backend="pennylane")
return qml.state()
x = np.array([0.1, 0.5, 1.2, 2.3])
state = circuit(x)When to Use This Encoding
- Periodic or seasonal time series data
- Molecular ring structures (e.g., benzene, cyclopentane)
- Data with natural circular ordering
- Clock-like or angular measurements
- Problems with discrete rotational symmetry (Z_n group)
Pros & Cons
Advantages
- Rigorous Z_n equivariance — mathematically guaranteed
- Ring topology provides efficient O(n) entanglement
- Strong inductive bias for periodic/cyclic data
- Constant depth per repetition (3 layers per rep)
- Configurable coupling strength for interaction control
Limitations
- Only captures cyclic symmetry — not general permutation equivariance
- Ring topology limits to nearest-neighbor+wrap interactions
- Requires features to have meaningful cyclic ordering
- Fixed RX angle limits circuit flexibility
- Performance degrades for non-periodic data
References
- [1]Nguyen, Q.T., et al. (2022). Theory for equivariant quantum neural networks. PRX Quantum, 3(3), 030322.
- [2]Larocca, M., et al. (2022). Group-invariant quantum machine learning. PRX Quantum, 3(3), 030341.
- [3]Meyer, J.J., et al. (2023). Exploiting symmetry in variational quantum machine learning. PRX Quantum, 4(1), 010328.