quri_parts.core.circuit package#
- quri_parts.core.circuit.convert_exp_single_pauli_gate(pauli: PauliLabel, coef: float) QuantumGate #
Convert an exponentiated single Pauli \(\exp(i a P)\) to the PauliRotation gate, where \(a\) is a real number coefficient and \(P\) is a product of the Pauli.
- Parameters:
pauli –
PauliLabel
for the exponentiated single Pauli.coef – A real number that is a coefficient of an exponentiated single Pauli.
- quri_parts.core.circuit.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.