braket.default_simulator.simulation_strategies.single_operation_strategy module

braket.default_simulator.simulation_strategies.single_operation_strategy.apply_operations(state: numpy.ndarray, qubit_count: int, operations: List[braket.default_simulator.operation.GateOperation]) → numpy.ndarray[source]

Applies operations to a state vector one at a time.

  • state (np.ndarray) – The state vector to apply the given operations to, as a type (num_qubits, 0) tensor
  • qubit_count (int) – Unused parameter; in signature for backwards-compatibility
  • operations (List[GateOperation]) – The operations to apply to the state vector

np.ndarray – The state vector after applying the given operations, as a type (qubit_count, 0) tensor