hamil_clever_sim.evolve_pauli.prepare_pauli_chains§

prepare_pauli_chains(pauli)[source]§

For each term of the pauli, we need to CNOT each to the last term of the pauli operator. This method implements the chain method, in which each qubit will have a CNOT applied to the next. We also ignore \(I\) operators, as they are not needed for the simulation.