Return the compose of a operator with itself n times.
n (int) – the number of times to compose with self (n>0).
the n-times composed operator.
- 반환 형식
- 예외 발생
QiskitError – if the input and output dimensions of the operator are not equal, or the power is not a positive integer.