TracedState

class guppylang.emulator.TracedState(probability: float, state: T)[source]

The result of tracing out qubits from a SeleneQuestState, leaving a probabilistic mix of states. This class represents a single state in the mix.

__delattr__(name)

Implement delattr(self, name).

__eq__(other)

Return self==value.

__hash__()

Return hash(self).

__init__(probability: float, state: T) None
__repr__()

Return repr(self).

__setattr__(name, value)

Implement setattr(self, name, value).

probability: float

The probability of this state in the mix

state: T

The state vector of remaining qubits after tracing out.