def METHOD_NAME(self):
    """from to file test"""
    singles = [X, Y, Z]
    dests = [None, Y]
    for pauli, dest in itertools.product(singles, dests):
        # print(pauli)
        converter = PauliBasisChange(destination_basis=dest)
        inst, dest = converter.get_cob_circuit(pauli.primitive)
        cob = converter.convert(pauli)
        np.testing.assert_array_almost_equal(
            pauli.to_matrix(), inst.adjoint().to_matrix() @ dest.to_matrix() @ inst.to_matrix()
        )
        np.testing.assert_array_almost_equal(pauli.to_matrix(), cob.to_matrix())
        np.testing.assert_array_almost_equal(
            inst.compose(pauli).compose(inst.adjoint()).to_matrix(), dest.to_matrix()
        )