tequila.hamiltonian.paulis.decompose_transfer_operator

tequila.hamiltonian.paulis.decompose_transfer_operator(ket: tequila.utils.bitstrings.BitString, bra: tequila.utils.bitstrings.BitString, qubits: List[int] = None) → tequila.hamiltonian.qubit_hamiltonian.QubitHamiltonian[source]

Create the operator

Notes

Create the operator

Note that this is operator is not necessarily hermitian So be careful when using it as a generator for gates

e.g. decompose_transfer_operator(ket=”01”, bra=”10”, qubits=[2,3]) gives the operator

\[\lvert 01 \rangle \langle 10 \rvert_{2,3}\]

acting on qubits 2 and 3

Parameters
  • ket (pass an integer, string, or tequila BitString) –

  • bra (pass an integer, string, or tequila BitString) –

  • qubits (pass the qubits onto which the operator acts) –