Skip to main content

decompose_controlled_rotation

Function decompose_controlled_rotation 

Source
pub fn decompose_controlled_rotation(
    control: QubitId,
    target: QubitId,
    gate_type: &str,
    theta: f64,
) -> Vec<Box<dyn GateOp>>
Expand description

Decompose a controlled-rotation gate into single-qubit and CNOT gates