Header menu logo Encodings

TreeNode Type

A node in a rooted tree. Each node represents one qubit/mode.

Record fields

Record Field Description

Children

Full Usage: Children

Field type: TreeNode list

Children of this node, ordered by index.

Field type: TreeNode list

Index

Full Usage: Index

Field type: int

0-based index of this node (= fermionic mode index).

Field type: int

Parent

Full Usage: Parent

Field type: int option

Parent index, or None for the root.

Field type: int option

Type something to start searching.