Skip to content

Commit

Permalink
No longer let __init__ refer to io.py which only contains deprecated …
Browse files Browse the repository at this point in the history
…functions, but instead use jsonparser.py
  • Loading branch information
jvdwetering committed Jan 22, 2025
1 parent 5cc673f commit dc3ea31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyzx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from .simplify import *
from .optimize import *
from .extract import *
from .io import *
from .graph.jsonparser import *
from .tensor import *
from .local_search.simulated_annealing import anneal
from .local_search.genetic import GeneticOptimizer
Expand Down
2 changes: 2 additions & 0 deletions pyzx/graph/jsonparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__all__ = ['string_to_phase','to_graphml']

import json
import re
from fractions import Fraction
Expand Down

0 comments on commit dc3ea31

Please sign in to comment.