fix deprecation warnings in qiskit init
@@ -46,10 +46,10 @@ def make_immutable(obj):
# 1-Qubit Paulis
-X = make_immutable(PauliOp(Pauli.from_label('X')))
-Y = make_immutable(PauliOp(Pauli.from_label('Y')))
-Z = make_immutable(PauliOp(Pauli.from_label('Z')))
-I = make_immutable(PauliOp(Pauli.from_label('I')))
+X = make_immutable(PauliOp(Pauli('X')))
+Y = make_immutable(PauliOp(Pauli('Y')))
+Z = make_immutable(PauliOp(Pauli('Z')))
+I = make_immutable(PauliOp(Pauli('I')))
# Clifford+T, and some other common non-parameterized gates
CX = make_immutable(CircuitOp(CXGate()))
