cirquit_unique: Unique

Description Usage Arguments Details Value

View source: R/Circuits.R

Description

A wrapper for a value that doesn't compare equal to other instances.

Usage

1

Arguments

...

parameters to pass.

Details

For example: 5 == 5 but Unique(5) != Unique(5). Unique is used by CircuitDag to wrap operations because nodes in a graph are considered the same node if they compare equal to each other. X(q0) in one moment of a Circuit and X(q0) in another moment of the Circuit are wrapped by Unique(X(q0)) so they are distinct nodes in the graph.

Value

None.


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.