PauliEvolutionGate
PauliEvolutionGate(operator, time=1.0, label=None, synthesis=None)
Bases: qiskit.circuit.gate.Gate
Time-evolution of an operator consisting of Paulis.
For an operator consisting of Pauli terms and (real) evolution time this gate implements
This gate serves as a high-level definition of the evolution and can be synthesized into a circuit using different algorithms.
The evolution gates are related to the Pauli rotation gates by a factor of 2. For example the time evolution of the Pauli operator is connected to the Pauli rotation by
References:
[1] G. Li et al. Paulihedral: A Generalized Block-Wise Compiler Optimization Framework For Quantum Simulation Kernels (2021). [arXiv:2109.03371(opens in a new tab)]
Parameters
- operator (Pauli | PauliOp | SparsePauliOp | PauliSumOp | list) – The operator to evolve. Can also be provided as list of non-commuting operators where the elements are sums of commuting operators. For example:
[XY + YX, ZZ + ZI + IZ, YY]
. - time (
Union
[int
,float
,ParameterExpression
]) – The evolution time. - label (
Optional
[str
]) – A label for the gate to display in visualizations. - synthesis (
Optional
[EvolutionSynthesis
]) – A synthesis strategy. If None, the default synthesis is the Lie-Trotter product formula with a single repetition.
Methods Defined Here
inverse
PauliEvolutionGate.inverse()
Invert this instruction.
If the instruction is composite (i.e. has a definition), then its definition will be recursively inverted.
Special instructions inheriting from Instruction can implement their own inverse (e.g. T and Tdg, Barrier, etc.)
Returns
a fresh instruction for the inverse
Return type
Raises
CircuitError – if the instruction is not composite and an inverse has not been implemented for it.
validate_parameter
PauliEvolutionGate.validate_parameter(parameter)
Gate parameters should be int, float, or ParameterExpression
Return type
Union
[float
, ParameterExpression
]
Attributes
condition_bits
Get Clbits in condition.
Return type
List
[Clbit
]
decompositions
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
definition
Return definition in terms of other basic gates.
duration
Get the duration.
label
Return instruction label
Return type
str
params
return instruction params.
time
Return the evolution time as stored in the gate parameters.
Return type
Union
[float
, ParameterExpression
]
Returns
The evolution time.
unit
Get the time unit of duration.