qailab.circuit.encoding_blocks.rotational#
R-gate implementations of input vector encoding blocks for variational circuits.
Summary#
Classes:
| Block wrapper for RealAmplitudes from qiskit.circuit.library | |
| Encoding of input vector using rotational gates. | 
Reference#
- class qailab.circuit.encoding_blocks.rotational.RotationalEncoder(r_gate_type: Literal['x', 'y', 'z'], block_type: Literal['input', 'weight'])[source]#
- Bases: - EncodingBlock- Encoding of input vector using rotational gates. - r_gate_type#
- Type of rotational gate applied to each qubit. - Type:
- Literal[‘x’, ‘y’, ‘z’] 
 
 - block_type#
- Whether this block encodes weights or inputs. - Type:
- Literal[‘input’, ‘weight’] 
 
 
- class qailab.circuit.encoding_blocks.rotational.RealAmplitudesBlock(block_type: Literal['input', 'weight'], entanglement: str | list[list[int]] | Callable[[int], list[int]] = 'reverse_linear', reps: int = 3, skip_final_rotation_layer: bool = False)[source]#
- Bases: - EncodingBlock,- EntanglingBlock- Block wrapper for RealAmplitudes from qiskit.circuit.library