cirq.SimulationProductState

A container for a Qid-to-SimulationState dictionary.

Inherits From: SimulationStateBase

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

classical_data

log_of_measurement_results Gets the log of measurement results.
qubit_map

qubits

sim_states

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.