quri_parts.core.circuit.exp_commuting_paulis_gate module#
- quri_parts.core.circuit.exp_commuting_paulis_gate.add_parametric_commuting_paulis_exp_gate(circuit: LinearMappedUnboundParametricQuantumCircuit, param_fn: dict[Parameter, float], qp_operator: Operator, coeff: float = 1) None #
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.