From 7d94c9c559842ca0420d991b48b233d380b0ef4f Mon Sep 17 00:00:00 2001 From: glassnotes Date: Wed, 8 May 2024 03:34:10 +0000 Subject: [PATCH] Auto-format with black --- ionizer/identity_hunter.py | 1 + ionizer/ops.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ionizer/identity_hunter.py b/ionizer/identity_hunter.py index 1684c11..ca4d4d2 100644 --- a/ionizer/identity_hunter.py +++ b/ionizer/identity_hunter.py @@ -2,6 +2,7 @@ Submodule to generate and store a database of circuit identities involving up to 3 GPI/GPI2 gates. """ + from importlib.resources import files from itertools import product diff --git a/ionizer/ops.py b/ionizer/ops.py index 8429afe..24a1eab 100644 --- a/ionizer/ops.py +++ b/ionizer/ops.py @@ -39,6 +39,7 @@ class GPI(Operation): immediately pushed into the Operator queue (optional) id (str or None): String representing the operation (optional) """ + num_wires = 1 num_params = 1 ndim_params = (0,) @@ -138,6 +139,7 @@ class MS(Operation): immediately pushed into the Operator queue (optional) id (str or None): String representing the operation (optional) """ + num_wires = 2 num_params = 0