Z2Symmetries¶
- class Z2Symmetries(symmetries, sq_paulis, sq_list, tapering_values=None, tol=1e-14)[source]¶
Bases:
object
Z2 Symmetries
- Parameters
symmetries (
List
[Pauli
]) – the list of Pauli objects representing the Z_2 symmetriessq_paulis (
List
[Pauli
]) – the list of single - qubit Pauli objects to construct the Clifford operatorssq_list (
List
[int
]) – the list of support of the single-qubit Pauli objects used to build the Clifford operatorstapering_values (
Optional
[List
[int
]]) – values determines the sector.tol (
float
) – Tolerance threshold for ignoring real and complex parts of a coefficient.
- Raises
OpflowError – Invalid paulis
Methods Defined Here
Tapering the operator with the same manner of how this tapered operator is created.
This method operates the first part of the tapering.
Get a copy of self.
Finds Z2 Pauli-type symmetries of an Operator.
Check the z2_symmetries is empty or not.
Taper an operator based on the z2_symmetries info and sector defined by tapering_values.
This method operates the second part of the tapering.
Attributes
- cliffords¶
Get clifford operators, build based on symmetries and single-qubit X. :rtype:
List
[PauliSumOp
] :returns: a list of unitaries used to diagonalize the Hamiltonian.
- settings¶
Return operator settings.
- Return type
Dict
- sq_list¶
returns sq list
- sq_paulis¶
returns sq paulis
- symmetries¶
return symmetries
- tapering_values¶
returns tapering values
- tol¶
Tolerance threshold for ignoring real and complex parts of a coefficient.