qml.paulix_ops¶
- paulix_ops(generators, num_qubits)[source]¶
Generate the single qubit Pauli-X operators σxi for each symmetry τj, such that it anti-commutes with τj and commutes with all others symmetries τk≠j. These are required to obtain the Clifford operators U for the Hamiltonian H.
- Parameters
generators (list[Operator]) – list of generators of symmetries, τ’s, for the Hamiltonian
num_qubits (int) – number of wires required to define the Hamiltonian
- Returns
list of single-qubit Pauli-X operators which will be used to build the Clifford operators U.
- Return type
list[Observable]
Example
>>> generators = [qml.Hamiltonian([1.0], [qml.Z(0) @ qml.Z(1)]), ... qml.Hamiltonian([1.0], [qml.Z(0) @ qml.Z(2)]), ... qml.Hamiltonian([1.0], [qml.Z(0) @ qml.Z(3)])] >>> paulix_ops(generators, 4) [X(1), X(2), X(3)]