pygsti.models.layerrules

Defines the LayerLizard class and supporting functionality.

Module Contents

Classes

LayerRules

Rules for composing a layer operation from the elements stored within a model.

class pygsti.models.layerrules.LayerRules

Bases: pygsti.baseobjs.nicelyserializable.NicelySerializable

Rules for composing a layer operation from the elements stored within a model.

A LayerRules object serves as an intermediary between a ImplicitModel object and a ForwardSimulator. It contains the logic for creating layer operations based on the partial/fundamental operation “blocks” stored within the model. Since different models hold different operation blocks, layer rules are usually tailored to a specific models.

prep_layer_operator(model, layerlbl, cache)

Create the operator corresponding to layerlbl.

Parameters

layerlblLabel

A circuit layer label.

Returns

State

povm_layer_operator(model, layerlbl, cache)

Create the operator corresponding to layerlbl.

Parameters

layerlblLabel

A circuit layer label.

Returns

POVM or POVMEffect

operation_layer_operator(model, layerlbl, cache)

Create the operator corresponding to layerlbl.

Parameters

layerlblLabel

A circuit layer label.

Returns

LinearOperator