Skip to content

_Pauli{X,Y,Z} maybe shouldn't be private #1985

@mpharrigan

Description

@mpharrigan

Unlike every other gate, with cirq.X, cirq.Y, and cirq.Z, it's very easy to end up with an instance of a class that is not importable from top-level-cirq

x1 = cirq.X
x2 = cirq.X**0.99
type(x1)
Out[6]: cirq.ops.pauli_gates._PauliX
type(x2)
Out[7]: cirq.ops.common_gates.XPowGate

consider renaming to PauliX and exposing as cirq.PauliX

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/pauliskind/design-issueA conversation around designtriage/discussNeeds decision / discussion, bring these up during Cirq Cynque

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions