RXYZCXLayer0#

class torchquantum.layer.RXYZCXLayer0(arch: Optional[dict] = None)[source]#

Bases: LayerTemplate0

Layer template with RXYZCX blocks.

This layer template consists of RXYZCX blocks using the RXYZCXLayer module.

Parameters:

arch (dict, optional) – The architecture configuration for the layer. Defaults to None.

n_wires#

The number of wires in the layer.

Type:

int

arch#

The architecture configuration for the layer.

Type:

dict

n_blocks#

The number of blocks in the layer.

Type:

int

layers_all#

The list of layers in the template.

Type:

tq.QuantumModuleList

build_layers()[source]#

Builds the RXYZCX layers with RXYZCXLayer for the template.

__init__(arch: Optional[dict] = None)#

Initialize the QuantumModule.

Returns:

None.

Examples

>>> qmodule = QuantumModule()

Methods

build_layers()[source]#

Attributes

name = 'rxyzcx_0'#
training: bool#