Skip to content

Compability with other Frameworks #4

@daehiff

Description

@daehiff

To my knowledge, tket has the PauliExpBox Class, which defines a phase gadget (See: https://cqcl.github.io/tket/pytket/api/circuit.html#pytket.circuit.PauliExpBox)
Which looks something like this:

num_qubits = 4
circuit = pytket.Circuit(num_qubits)
circuit.add_pauliexpbox(PauliExpBox([Pauli.I, Pauli.Z, Pauli.Y, Pauli.X], np.pi /2.0), list(range(num_qubits)))

On the qiskit side, the Pauli class exists combined with the operator flow (see: https://qiskit.org/documentation/tutorials/operators/01_operator_flow.html). One can also produce a Pauli Polynomial.
The definition looks something like this:

>>> from qiskit.opflow import I, X, Y, Z
>>> print(1.1 * ((1.2 * X)^(Y + (1.3 * Z))))
# 1.2 * (
#  1.1 * XY
# + 1.4300000000000002 * XZ
# )

It would be interesting to provide compatibility of those definitions with PauliOpt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions