From ad694ab51b95ffd522034f5094cc8241e38f74c5 Mon Sep 17 00:00:00 2001 From: Corey Ostrove Date: Wed, 2 Jul 2025 22:47:27 -0600 Subject: [PATCH 1/3] Add version file directive to pyproject --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 2d42263b4..10f00cd9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,5 +97,6 @@ Repository = 'https://github.com/sandialabs/pyGSTi' Download ='https://github.com/sandialabs/pyGSTi/tarball/master' [tool.setuptools_scm] +version_file = "pygsti/_version.py" version_scheme = "only-version" local_scheme = "no-local-version" \ No newline at end of file From 6666d37f96da55402375ea426a3de3831d1b575c Mon Sep 17 00:00:00 2001 From: Jude Alnas Date: Mon, 21 Jul 2025 18:12:49 -0400 Subject: [PATCH 2/3] Fix string formatting in assertion for QASM gate lookup --- pygsti/circuits/circuit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygsti/circuits/circuit.py b/pygsti/circuits/circuit.py index f6c2e2043..63f097f28 100644 --- a/pygsti/circuits/circuit.py +++ b/pygsti/circuits/circuit.py @@ -4309,7 +4309,7 @@ def convert_to_openqasm(self, num_qubits=None, if openqasmlist_for_gate is None: # Try to look up the operation in mapping dict instead openqasmfn_for_gate = gateargs_map.get(gate.name, None) - assert openqasmfn_for_gate is not None, "Could not look up {} as qasm list or func" % gate.name + assert openqasmfn_for_gate is not None, "Could not look up {} as qasm list or func".format(gate.name) openqasmlist_for_gate = openqasmfn_for_gate(gate.args) openqasm_for_gate = '' From f8f3a4c0dc117fd9684cc880ed35fa259819257b Mon Sep 17 00:00:00 2001 From: Jude Alnas Date: Mon, 21 Jul 2025 18:13:29 -0400 Subject: [PATCH 3/3] Fix string formatting in assertion for QASM gate lookup --- pygsti/circuits/circuit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygsti/circuits/circuit.py b/pygsti/circuits/circuit.py index 63f097f28..7095b31dc 100644 --- a/pygsti/circuits/circuit.py +++ b/pygsti/circuits/circuit.py @@ -4309,7 +4309,7 @@ def convert_to_openqasm(self, num_qubits=None, if openqasmlist_for_gate is None: # Try to look up the operation in mapping dict instead openqasmfn_for_gate = gateargs_map.get(gate.name, None) - assert openqasmfn_for_gate is not None, "Could not look up {} as qasm list or func".format(gate.name) + assert openqasmfn_for_gate is not None, "Could not look up {0} as qasm list or func".format(gate.name) openqasmlist_for_gate = openqasmfn_for_gate(gate.args) openqasm_for_gate = ''