# qiskit.opflow.converters.TwoQubitReduction¶

class TwoQubitReduction(num_particles)[Quellcode]

Two qubit reduction converter which eliminates the central and last qubit in a list of Pauli that has diagonal operators (Z,I) at those positions.

Chemistry specific method: It can be used to taper two qubits in parity and binary-tree mapped fermionic Hamiltonians when the spin orbitals are ordered in two spin sectors, (block spin order) according to the number of particles in the system.

Parameter

num_particles (Union[int, List[int], Tuple[int, int]]) – number of particles, if it is a list, the first number is alpha and the second number if beta.

__init__(num_particles)[Quellcode]
Parameter

num_particles (Union[int, List[int], Tuple[int, int]]) – number of particles, if it is a list, the first number is alpha and the second number if beta.

Methods

 __init__(num_particles) type num_particles Union[int, List[int], Tuple[int, int]] convert(operator) Converts the Operator to tapered one by Z2 symmetries.
convert(operator)[Quellcode]

Converts the Operator to tapered one by Z2 symmetries.

Parameter

operator (OperatorBase) – the operator

Rückgabetyp

OperatorBase

Rückgabe

A new operator whose qubit number is reduced by 2.