We're celebrating World Quantum Day 2022! Join us

cirq.sim.SimulationStateBase

An interface for quantum states as targets for operations.

qubits The canonical ordering of qubits.
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

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.

sample

View source

Samples the state 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.