diff --git a/pygsti/circuits/circuit.py b/pygsti/circuits/circuit.py index f6c2e2043..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" % 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 = '' 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