quri_parts.core.circuit package#

convert_exp_single_pauli_gate(pauli, coef)#

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) – PauliLabel for the exponentiated single Pauli.

  • coef (float) – A real number that is a coefficient of an exponentiated single Pauli.

Return type:

QuantumGate

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

Submodules#