Skip to content

Create Pauli class #8

@y-richie-y

Description

@y-richie-y

Taken from #4:

Create a class for Paulis. It should have essentially the same interface as qiskit.opflow.

>>> 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
# )

This is an intermediate step to #6, which should take a Pauli string as input and output a trotterised circuit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions