About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
TwoQubitReduction
class TwoQubitReduction(num_particles)
Bases: qiskit.opflow.converters.converter_base.ConverterBase
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.
Parameters
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 Defined Here
convert
TwoQubitReduction.convert(operator)
Converts the Operator to tapered one by Z2 symmetries.
Parameters
operator (OperatorBase
) – the operator
Return type
Returns
A new operator whose qubit number is reduced by 2.
Was this page helpful?
Report a bug or request content on GitHub.