diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fa848919..dece2e38 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace exclude: ^docs/reference/_autosummary/ @@ -15,7 +15,7 @@ repos: - id: debug-statements - repo: https://github.com/crate-ci/typos - rev: v1.21.0 + rev: v1.27.0 hooks: - id: typos args: [] @@ -25,13 +25,13 @@ repos: )$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.3 + rev: v0.7.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black exclude: | diff --git a/pyproject.toml b/pyproject.toml index 5050dfd7..1e04c6c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ build-backend = "setuptools.build_meta" [project] name = "quantum-pecos" -version = "0.6.0.dev5" +version = "0.6.0.dev6" authors = [ {name = "The PECOS Developers"}, ] diff --git a/python/pecos/circuit_converters/checks2circuit.py b/python/pecos/circuit_converters/checks2circuit.py index db2624dc..29aa846f 100644 --- a/python/pecos/circuit_converters/checks2circuit.py +++ b/python/pecos/circuit_converters/checks2circuit.py @@ -76,8 +76,7 @@ def compile(self, instr, abstract_circuit, mapping=None): if make_ticks["max_zdatas"]: # init [data ticks] meas temp = make_ticks["max_zdatas"] + 1 - if temp > largest_tick: - largest_tick = temp + largest_tick = max(temp, largest_tick) if not make_ticks["max_xdatas"] and not make_ticks["max_zdatas"]: msg = "Something very weird happened!" @@ -98,14 +97,12 @@ def compile(self, instr, abstract_circuit, mapping=None): tick_list = [ticks] for t in tick_list: - if t > largest_tick: - largest_tick = t + largest_tick = max(t, largest_tick) else: tick = params["tick"] - if tick > largest_tick: - largest_tick = tick + largest_tick = max(tick, largest_tick) # A quantum circuit with number of ticks == ``largest_tick`` circuit = QuantumCircuit(largest_tick + 1, **gate_params) @@ -220,8 +217,7 @@ def _check_ticks(abstract_circuit): break if gate_symbol == "X check": - if len(datas) > max_xdatas: - max_xdatas = len(datas) + max_xdatas = max(len(datas), max_xdatas) elif len(datas) > max_zdatas: max_zdatas = len(datas) diff --git a/python/pecos/error_models/generic_error_model.py b/python/pecos/error_models/generic_error_model.py index 3ab33db4..11b2986b 100644 --- a/python/pecos/error_models/generic_error_model.py +++ b/python/pecos/error_models/generic_error_model.py @@ -18,7 +18,6 @@ from pecos.error_models.error_model_abc import ErrorModel from pecos.error_models.noise_impl.noise_initz_bitflip_leakage import noise_initz_bitflip_leakage from pecos.error_models.noise_impl.noise_meas_bitflip_leakage import noise_meas_bitflip_leakage -from pecos.error_models.noise_impl.noise_meas_bitflip import noise_meas_bitflip from pecos.error_models.noise_impl.noise_sq_depolarizing_leakage import noise_sq_depolarizing_leakage from pecos.error_models.noise_impl.noise_tq_depolarizing_leakage import noise_tq_depolarizing_leakage from pecos.error_models.noise_impl_old.gate_groups import one_qubits, two_qubits diff --git a/python/pecos/foreign_objects/object_pool.py b/python/pecos/foreign_objects/object_pool.py index be138140..2d5471af 100644 --- a/python/pecos/foreign_objects/object_pool.py +++ b/python/pecos/foreign_objects/object_pool.py @@ -24,7 +24,7 @@ class NamedObjectPool(ForeignObject): def __init__(self, **objects: ForeignObject) -> None: self.objs = objects - self.default = objects.get("default", None) + self.default = objects.get("default") def new_instance(self) -> None: """Create new instance/internal state.""" diff --git a/python/pecos/simulators/compile_cython.py b/python/pecos/simulators/compile_cython.py index 5184e33c..94acd138 100644 --- a/python/pecos/simulators/compile_cython.py +++ b/python/pecos/simulators/compile_cython.py @@ -28,9 +28,9 @@ def main(): for d in cython_dirs: path = Path(current_location / d) - p = subprocess.Popen( + p = subprocess.Popen( # noqa: S602 "python setup.py build_ext --inplace", # noqa: S607 - shell=True, # noqa: S602 + shell=True, cwd=path, stderr=subprocess.PIPE, ) diff --git a/python/pecos/slr/block.py b/python/pecos/slr/block.py index c5fc0d63..882f3c8e 100644 --- a/python/pecos/slr/block.py +++ b/python/pecos/slr/block.py @@ -62,11 +62,10 @@ def __iter__(self): def iter(self): yield from self.__iter__() - def gen(self, target: object | str): - + def gen(self, target: object | str, add_versions=True): if isinstance(target, str): if target == "qasm": - target = QASMGenerator() + target = QASMGenerator(add_versions=add_versions) else: msg = f"Code gen target '{target}' is not supported." raise NotImplementedError(msg) @@ -74,5 +73,5 @@ def gen(self, target: object | str): target.generate_block(self) return target.get_output() - def qasm(self): - return self.gen("qasm") + def qasm(self, add_versions=True): + return self.gen("qasm", add_versions=add_versions) diff --git a/python/pecos/slr/gen_codes/gen_qasm.py b/python/pecos/slr/gen_codes/gen_qasm.py index 56c3d1c1..618e09fa 100644 --- a/python/pecos/slr/gen_codes/gen_qasm.py +++ b/python/pecos/slr/gen_codes/gen_qasm.py @@ -15,11 +15,12 @@ class QASMGenerator: - def __init__(self, includes: list[str] | None = None): + def __init__(self, includes: list[str] | None = None, add_versions=True): self.output = [] self.current_scope = None self.includes = includes self.cond = None + self.add_versions = add_versions def write(self, line): self.output.append(line) @@ -37,8 +38,10 @@ def enter_block(self, block): for inc in self.includes: self.write(f'include "{str(inc)}";') else: + # TODO: dump definitions in for things that are used instead of using includes self.write('include "hqslib1.inc";') - self.write(f"// Generated using: PECOS version {__version__}") + if self.add_versions: + self.write(f"// Generated using: PECOS version {__version__}") for var in block.vars: var_def = self.process_var_def(var) self.write(var_def) @@ -71,7 +74,6 @@ def generate_block(self, block): self.cond = None elif block_name == "Repeat": - for _ in range(block.cond): self.block_op_loop(block) else: @@ -180,7 +182,6 @@ def generate_op(self, op): op_list = op_str.split("\n") op_new = [] for o in op_list: - o = o.strip() if o != "" and not o.startswith("//"): for qi in o.split(";"): @@ -215,22 +216,31 @@ def process_qgate(self, op): op_str = self.qgate_tq_qasm(op) else: - match sym: case "Measure": - op_str = " ".join([f"measure {str(q)} -> {c};" for q, c in zip(op.qargs, op.cout, strict=True)]) + op_str = " ".join( + [f"measure {str(q)} -> {c};" for q, c in zip(op.qargs, op.cout, strict=True)], + ) case "F": - op_str = " ".join([f"rx(pi/2) {str(q)};\nrz(pi/2) {str(q)};" for q in op.qargs]) + op_str = " ".join( + [f"rx(pi/2) {str(q)};\nrz(pi/2) {str(q)};" for q in op.qargs], + ) case "Fdg": - op_str = " ".join([f"ry(-pi/2) {str(q)};\nrz(-pi/2) {str(q)};" for q in op.qargs]) + op_str = " ".join( + [f"ry(-pi/2) {str(q)};\nrz(-pi/2) {str(q)};" for q in op.qargs], + ) case "F4": - op_str = " ".join([f"ry(-pi/2) {str(q)};\nrz(pi/2) {str(q)};" for q in op.qargs]) + op_str = " ".join( + [f"ry(-pi/2) {str(q)};\nrz(pi/2) {str(q)};" for q in op.qargs], + ) case "F4dg": - op_str = " ".join([f"rx(-pi/2) {str(q)};\nrz(-pi/2) {str(q)};" for q in op.qargs]) + op_str = " ".join( + [f"rx(-pi/2) {str(q)};\nrz(-pi/2) {str(q)};" for q in op.qargs], + ) case "Prep": op_str = self.qgate_qasm(op, "reset") diff --git a/python/pecos/tools/stabilizer_verification.py b/python/pecos/tools/stabilizer_verification.py index 3e6bd406..4ad86df6 100644 --- a/python/pecos/tools/stabilizer_verification.py +++ b/python/pecos/tools/stabilizer_verification.py @@ -913,8 +913,7 @@ def shortest_logicals(self, start_weight=None, delta=0, verbose=True, css=False) qudit_set = self.data_qubits - if end_weight > len(qudit_set): - end_weight = len(qudit_set) + end_weight = min(end_weight, len(qudit_set)) state = self.state found = self._dist_mode_smallest( diff --git a/requirements.txt b/requirements.txt index d0d27e16..4ca6f74f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,31 +4,31 @@ # # pip-compile --extra=tests --no-annotate --no-emit-index-url --output-file=requirements.txt --strip-extras pyproject.toml # -annotated-types==0.6.0 -attrs==23.2.0 -contourpy==1.2.0 +annotated-types==0.7.0 +attrs==24.2.0 +contourpy==1.3.0 cycler==0.12.1 -fonttools==4.50.0 -hypothesis==6.100.1 +fonttools==4.54.1 +hypothesis==6.116.0 iniconfig==2.0.0 -kiwisolver==1.4.5 +kiwisolver==1.4.7 markdown-it-py==3.0.0 -matplotlib==3.8.3 +matplotlib==3.9.2 mdurl==0.1.2 networkx==2.8.8 numpy==1.26.4 -packaging==24.0 +packaging==24.1 phir==0.3.3 -pillow==10.2.0 -pluggy==1.4.0 -pydantic==2.6.4 -pydantic-core==2.16.3 -pygments==2.17.2 -pyparsing==3.1.2 -pytest==8.1.1 +pillow==11.0.0 +pluggy==1.5.0 +pydantic==2.9.2 +pydantic-core==2.23.4 +pygments==2.18.0 +pyparsing==3.2.0 +pytest==8.3.3 python-dateutil==2.9.0.post0 -rich==13.7.1 -scipy==1.12.0 +rich==13.9.4 +scipy==1.14.1 six==1.16.0 sortedcontainers==2.4.0 -typing-extensions==4.10.0 +typing-extensions==4.12.2 diff --git a/tests/integration/state_sim_tests/test_cointoss.py b/tests/integration/state_sim_tests/test_cointoss.py index 9680a744..50e2d661 100644 --- a/tests/integration/state_sim_tests/test_cointoss.py +++ b/tests/integration/state_sim_tests/test_cointoss.py @@ -12,7 +12,6 @@ from __future__ import annotations import numpy as np - from pecos.circuits import QuantumCircuit from pecos.simulators import CoinToss diff --git a/tests/integration/state_sim_tests/test_statevec.py b/tests/integration/state_sim_tests/test_statevec.py index 236618d1..8ba96b5d 100644 --- a/tests/integration/state_sim_tests/test_statevec.py +++ b/tests/integration/state_sim_tests/test_statevec.py @@ -23,7 +23,6 @@ import numpy as np import pytest - from pecos.circuits import QuantumCircuit from pecos.engines.hybrid_engine import HybridEngine from pecos.error_models.generic_error_model import GenericErrorModel diff --git a/tests/integration/test_phir.py b/tests/integration/test_phir.py index 6f826e76..30a2ccef 100644 --- a/tests/integration/test_phir.py +++ b/tests/integration/test_phir.py @@ -54,8 +54,8 @@ def is_wasmer_supported(): return WASMER_ERR_MSG != "Wasmer is not available on this system" -@pytest.mark.wasmtime() -@pytest.mark.optional_dependency() +@pytest.mark.wasmtime +@pytest.mark.optional_dependency def test_spec_example_wasmtime(): """A random example showing that various basic aspects of PHIR is runnable by PECOS.""" @@ -67,8 +67,8 @@ def test_spec_example_wasmtime(): ) -@pytest.mark.wasmtime() -@pytest.mark.optional_dependency() +@pytest.mark.wasmtime +@pytest.mark.optional_dependency def test_spec_example_noisy_wasmtime(): """A random example showing that various basic aspects of PHIR is runnable by PECOS, with noise.""" @@ -95,8 +95,8 @@ def test_spec_example_noisy_wasmtime(): ) -@pytest.mark.wasmtime() -@pytest.mark.optional_dependency() +@pytest.mark.wasmtime +@pytest.mark.optional_dependency def test_example1_wasmtime(): """A random example showing that various basic aspects of PHIR is runnable by PECOS.""" @@ -108,8 +108,8 @@ def test_example1_wasmtime(): ) -@pytest.mark.wasmtime() -@pytest.mark.optional_dependency() +@pytest.mark.wasmtime +@pytest.mark.optional_dependency def test_example1_noisy_wasmtime(): """A random example showing that various basic aspects of PHIR is runnable by PECOS, with noise.""" @@ -137,8 +137,8 @@ def test_example1_noisy_wasmtime(): @pytest.mark.skipif(not is_wasmer_supported(), reason="Wasmer is not support on some OS/Python version combinations.") -@pytest.mark.wasmer() -@pytest.mark.optional_dependency() +@pytest.mark.wasmer +@pytest.mark.optional_dependency def test_example1_wasmer(): """A random example showing that various basic aspects of PHIR is runnable by PECOS.""" @@ -151,8 +151,8 @@ def test_example1_wasmer(): @pytest.mark.skipif(not is_wasmer_supported(), reason="Wasmer is not support on some OS/Python version combinations.") -@pytest.mark.wasmer() -@pytest.mark.optional_dependency() +@pytest.mark.wasmer +@pytest.mark.optional_dependency def test_example1_noisy_wasmer(): """A random example showing that various basic aspects of PHIR is runnable by PECOS, with noise.""" @@ -260,7 +260,7 @@ def test_qparallel(): assert m.count("1111") == len(m) -@pytest.mark.optional_dependency() # uses projectq / state-vector +@pytest.mark.optional_dependency # uses projectq / state-vector def test_bell_qparallel(): """Testing a program creating and measuring a Bell state and using qparallel blocks returns expected results.""" diff --git a/tests/regression/test_qasm/conftest.py b/tests/regression/test_qasm/conftest.py index 7a227d4c..b797312e 100644 --- a/tests/regression/test_qasm/conftest.py +++ b/tests/regression/test_qasm/conftest.py @@ -5,10 +5,14 @@ import pytest -@pytest.fixture() +@pytest.fixture def compare_qasm(): - def _compare_qasm(block, *params, directory: Path | None = None, filename: str | None = None): - + def _compare_qasm( + block, + *params, + directory: Path | None = None, + filename: str | None = None, + ): if directory is None: directory = Path(__file__).parent @@ -28,10 +32,13 @@ def _compare_qasm(block, *params, directory: Path | None = None, filename: str | qasm1 = qasm1.strip() - if hasattr(block, "gen"): + # TODO: Fix this... this is kinda hacky + if hasattr(block, "qargs") and hasattr(block, "params") and hasattr(block, "sym"): qasm2 = block.gen("qasm").strip() + elif hasattr(block, "gen"): + qasm2 = block.gen("qasm", add_versions=False).strip() else: - qasm2 = block.qasm().strip() + qasm2 = block.qasm(add_versions=False).strip() assert qasm1 == qasm2 diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_X.qasm index c687719f..ac8487e0 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_Y.qasm index a51beeb3..f8a8927f 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_Z.qasm index ce1adab7..40482101 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+X_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_X.qasm index a5cb62c0..45c4c7da 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_Y.qasm index 45c3e6e4..9f91952b 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_Z.qasm index 44d474fa..6fee7c8c 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Y_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_X.qasm index 01ff662d..9199c2e4 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_Y.qasm index 2b4ea03a..344f98e9 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_Z.qasm index 95d9175e..80ffb22d 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_+Z_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_X.qasm index 1a4c7d6d..2d660958 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_Y.qasm index 78efe56e..516e40d2 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_Z.qasm index 0acf1edb..345f67c2 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-X_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_X.qasm index 670077e1..d116f18a 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_Y.qasm index 2e6e3a23..6cda639b 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_Z.qasm index 79ab54f7..03100d20 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Y_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_X.qasm index b5dd8613..97dec00e 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_Y.qasm index cf43d3e8..23abdb1d 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_Z.qasm index 9dbc6206..6e70b17a 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.t_gate_-Z_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_reject[2]; creg m_t[1]; creg m_out[2]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_X.qasm index 1d8faf8c..a630dbd0 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_Y.qasm index 20585369..535b72b4 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_Z.qasm index 685a6d7e..268bd4bd 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+X_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_X.qasm index 1737222c..b28faee7 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_Y.qasm index d287472f..3b7331e4 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_Z.qasm index 1e6dbb88..beaf79c4 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Y_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_X.qasm index 65e3440b..5c85469f 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_Y.qasm index fac84a8a..bc705a55 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_Z.qasm index 5eff70b6..d78db533 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_+Z_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_X.qasm index 50f0637b..626c598f 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_Y.qasm index 68de1758..e944ab63 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_Z.qasm index 225f8164..035fb738 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-X_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_X.qasm index 54827d3a..b3b0ee97 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_Y.qasm index 687d1631..ebff4202 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_Z.qasm index 95f3c355..bcfa7342 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Y_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_X.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_X.qasm index 4b6242ab..73ea09a2 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_X.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_X.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_Y.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_Y.qasm index c004b744..21764db0 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_Y.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_Y.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_Z.qasm b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_Z.qasm index e2a5299d..d143801b 100644 --- a/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_Z.qasm +++ b/tests/regression/test_qasm/regression_qasm/local_steane_code_program.telep_-Z_Z.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 creg m_bell[2]; creg m_out[1]; qreg sin_d[7]; diff --git a/tests/regression/test_qasm/regression_qasm/phys.tele_block_block.qasm b/tests/regression/test_qasm/regression_qasm/phys.tele_block_block.qasm index d46beb66..2512fabe 100644 --- a/tests/regression/test_qasm/regression_qasm/phys.tele_block_block.qasm +++ b/tests/regression/test_qasm/regression_qasm/phys.tele_block_block.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 qreg q[2]; creg m[2]; h q[0]; diff --git a/tests/regression/test_qasm/regression_qasm/phys.tele_block_telep_block.qasm b/tests/regression/test_qasm/regression_qasm/phys.tele_block_telep_block.qasm index 877539ba..014a9b4c 100644 --- a/tests/regression/test_qasm/regression_qasm/phys.tele_block_telep_block.qasm +++ b/tests/regression/test_qasm/regression_qasm/phys.tele_block_telep_block.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 qreg q[2]; creg m[2]; creg m2[2]; diff --git a/tests/regression/test_qasm/regression_qasm/phys.tele_if.qasm b/tests/regression/test_qasm/regression_qasm/phys.tele_if.qasm index 27ea9cba..0a9b93a3 100644 --- a/tests/regression/test_qasm/regression_qasm/phys.tele_if.qasm +++ b/tests/regression/test_qasm/regression_qasm/phys.tele_if.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 qreg q[2]; creg m[2]; h q[0]; diff --git a/tests/regression/test_qasm/regression_qasm/phys.tele_if_block_block.qasm b/tests/regression/test_qasm/regression_qasm/phys.tele_if_block_block.qasm index a3c28d3e..52ddbb57 100644 --- a/tests/regression/test_qasm/regression_qasm/phys.tele_if_block_block.qasm +++ b/tests/regression/test_qasm/regression_qasm/phys.tele_if_block_block.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 qreg q[2]; creg m[2]; h q[0]; diff --git a/tests/regression/test_qasm/regression_qasm/phys.tele_repeat.qasm b/tests/regression/test_qasm/regression_qasm/phys.tele_repeat.qasm index 55bf3962..a352927b 100644 --- a/tests/regression/test_qasm/regression_qasm/phys.tele_repeat.qasm +++ b/tests/regression/test_qasm/regression_qasm/phys.tele_repeat.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 qreg q[2]; creg m[2]; h q[0]; diff --git a/tests/regression/test_qasm/regression_qasm/phys.teleport.qasm b/tests/regression/test_qasm/regression_qasm/phys.teleport.qasm index 38dce771..c4aafe30 100644 --- a/tests/regression/test_qasm/regression_qasm/phys.teleport.qasm +++ b/tests/regression/test_qasm/regression_qasm/phys.teleport.qasm @@ -1,6 +1,5 @@ OPENQASM 2.0; include "hqslib1.inc"; -// Generated using: PECOS version 0.6.0.dev5 qreg q[2]; creg m[2]; h q[0];