PermutationMatrix.get_statevector
- PermutationMatrix.get_statevector(in_state)
Calculate the output state after applying this unitary to in_state.
- Parameters:
in_state (
StateVector|complex128|Sequence[int|float|complex]) – The input state to apply self to.- Returns:
The output state.
- Return type:
- Raises:
ValueError – If the state’s dimension doesn’t match the unitary’s dimension.