moment: Moment

Description Usage Arguments Details Value See Also

View source: R/Circuits.R

Description

A time-slice of operations within a circuit. Grouping operations into moments is intended to be a strong suggestion to whatever is scheduling operations on real hardware. Operations in the same moment should execute at the same time (to the extent possible; not all operations have the same duration) and it is expected that all operations in a moment should be completed before beginning the next moment.

Usage

1

Arguments

...

parameters to pass.

Details

Moment can be indexed by qubit or list of qubits: moment[qubit] returns the Operation in the moment which touches the given qubit, or throws KeyError if there is no such operation. moment[qubits] returns another Moment which consists only of those operations which touch at least one of the given qubits. If there are no such operations, returns an empty Moment.

Value

constructed moment with the given operations.

See Also

Other Circuits: circuit_dag(), circuit(), gate_operation_(), gate_parallel_operation(), insert_strategy(), qubit_order_or_list(), qubit_order(), tree_flatten_op(), tree_op()


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