跳转至

MultiControlRotation

QuICT.core.gate.MultiControlRotation

MultiControlRotation(target_gate: GateType, param: float)

Bases: object

Source code in QuICT/core/gate/multicontrol_rotation.py
def __init__(self, target_gate: GateType, param: float):
    assert target_gate in [GateType.ry, GateType.rz]

    self.gate_type = target_gate
    self.param = param
    self.gate_dict = {
        GateType.ry: Ry,
        GateType.rz: Rz,
    }
    self.cgate_dict = {
        GateType.ry: CRy,
        GateType.rz: CRz,
    }