cirq.WaveFunctionTrialResult

class cirq.WaveFunctionTrialResult(params: cirq.study.resolver.ParamResolver, measurements: Dict[str, numpy.ndarray], final_simulator_state: cirq.sim.wave_function_simulator.WaveFunctionSimulatorState)[source]

A SimulationTrialResult that includes the StateVectorMixin methods.

final\_state

The final wave function of the system.

__init__(params: cirq.study.resolver.ParamResolver, measurements: Dict[str, numpy.ndarray], final_simulator_state: cirq.sim.wave_function_simulator.WaveFunctionSimulatorState) → None[source]
Args:
qubit_map: A map from the Qubits in the Circuit to the the index
of this qubit for a canonical ordering. This canonical ordering
is used to define the state (see the state_vector() method).

Methods

bloch_vector_of(qubit)

Returns the bloch vector of a qubit in the state.

density_matrix_of([qubits])

Returns the density matrix of the state.

dirac_notation([decimals])

Returns the state vector as a string in Dirac notation.

state_vector()

Return the wave function at the end of the computation.

Attributes

qubit_map

A map from Qid to index used to define the ordering of the basis in