braket.default_simulator.simulation_strategies.single_operation_strategy module
- braket.default_simulator.simulation_strategies.single_operation_strategy.apply_operations(state: ndarray, qubit_count: int, operations: list[GateOperation]) ndarray [source]
Applies operations to a state vector one at a time.
- Parameters:
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
- Returns:
np.ndarray – The state vector after applying the given operations, as a type (qubit_count, 0) tensor