qiskit.circuit.Gate.power¶
- Gate.power(exponent)[Quellcode]¶
Creates a unitary gate as gate^exponent.
- Parameter
exponent (float) – Gate^exponent
- Rückgabe
To which to_matrix is self.to_matrix^exponent.
- Rückgabetyp
- Verursacht
CircuitError – If Gate is not unitary