cirq.sim.ActOnArgsContainer

A container for a Qid-to-ActOnArgs dictionary.

Inherits From: OperationTarget

args The ActOnArgs dictionary. This will not be copied; the original reference will be kept here.
qubits The canonical ordering of qubits.
split_untangled_states If True, optimizes operations by running unentangled qubit sets independently and merging those states at the end.
log_of_measurement_results A mutable object that measurements are being recorded into.

log_of_measurement_results Gets the log of measurement results.
qubits Gets the qubit order maintained by this target.

Methods

apply_operation

View source

copy

View source

Copies the object.

create_merged_state

View source

Creates a final merged state.

get

D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

items

D.items() -> a set-like object providing a view on D's items

keys

D.keys() -> a set-like object providing a view on D's keys

sample

View source

Samples the state value.

values

D.values() -> an object providing a view on D's values

__contains__

__eq__

Return self==value.

__getitem__

View source

Gets the item associated with the qubit.

__iter__

View source

Iterates the keys of the mapping.

__len__

View source

Gets the number of items in the mapping.