-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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.
y-richie-y and sg495
Metadata
Metadata
Assignees
Labels
No labels