quri_parts.circuit.utils.controlled_rotations module#
- add_controlled_RX_gate(circuit, control_index, target_index, param_fn)#
Add a controlled-RX gate to the given
circuit
.- Parameters:
circuit (LinearMappedUnboundParametricQuantumCircuit) –
control_index (int) –
target_index (int) –
param_fn (circuit.parameter_mapping.ParameterOrLinearFunction) –
- Return type:
- add_controlled_RY_gate(circuit, control_index, target_index, param_fn)#
Add a controlled-RY gate to the given
circuit
.- Parameters:
circuit (LinearMappedUnboundParametricQuantumCircuit) –
control_index (int) –
target_index (int) –
param_fn (circuit.parameter_mapping.ParameterOrLinearFunction) –
- Return type: