quri_parts.core.circuit.exp_commuting_paulis_gate module#

add_parametric_commuting_paulis_exp_gate(circuit, param_fn, qp_operator, coeff=1)#

Add exponential pauli rotation gate to a LinearMappedUnboundParametricQuantumCircuit in place according to the equation:

\[\exp \left[ i \text{c} * f(\theta_1, \theta_2, \cdots) * \text{qp_operator} \right]\]
Arg:
circuit:

The circuit to add a pauli exponential rotation gate to.

param_fn:

A dict representing parametric function in front of the qp_operator.

qp_operator:

A Hermitian quri-parts operator.

coeff:

An overall real coeffcient in the exponent.

Parameters:
Return type:

None