We're celebrating World Quantum Day 2022! Join us

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.
classical_data The shared classical data container for this simulation.

args

classical_data The shared classical data container for this simulation..
log_of_measurement_results Gets the log of measurement results.
qubits Gets the qubit order maintained by this target.
split_untangled_states

Methods

apply_operation

View source

copy

View source

Creates a copy of the object.

Args
deep_copy_buffers If True, buffers will also be deep-copied. Otherwise the copy will share a reference to the original object's buffers.

Returns
A copied instance.

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.