qiskit.circuit.Gate.power¶
- Gate.power(exponent)[código fonte]¶
Creates a unitary gate as gate^exponent.
- Parâmetros
exponent (float) – Gate^exponent
- Retorno
To which to_matrix is self.to_matrix^exponent.
- Tipo de retorno
- Levanta
CircuitError – If Gate is not unitary