pygsti.modelmembers.modelmember.ModelChild

pygsti.modelmembers.modelmember.ModelChild#

class ModelChild(parent=None)#

Bases: object

Base class for all objects contained in a Model that hold a parent reference to their parent Model.

Parameters:

parent (Model, optional) – The parent model.

parent#

The parent of this object.

Type:

Model

Methods

__init__([parent])

copy([parent, memo])

Copy this object.

Attributes

parent

Gets the parent of this object.

copy(parent=None, memo=None)#

Copy this object. Resets parent to None or parent.

Parameters:
  • parent (Model, optional) – The parent of the new, copied, object.

  • memo (Optional dictionary) – A dictionary to store the id of the parent. Used for memoization.

Returns:

A copy of this object.

Return type:

ModelChild

property parent: Model#

Gets the parent of this object.

Return type:

Model