From 4a63b1796b57ae3745128520bc20160caeba9739 Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Fri, 24 Mar 2023 13:14:07 +0000 Subject: [PATCH] Move OQ3 exporter tests to qasm3 module (#9844) * Move OQ3 exporter tests to qasm3 module These previously lived in `test/python/circuit` just for historical reasons (the OQ2 exporter lives there because it's a method on `QuantumCircuit`). Since we have a dedicated `qasm3` module now, including in the test suite, it makes sense to move the file there. * Add missing __init__.py --- test/python/qasm3/__init__.py | 13 +++++++++++++ .../test_circuit_qasm3.py => qasm3/test_export.py} | 0 2 files changed, 13 insertions(+) create mode 100644 test/python/qasm3/__init__.py rename test/python/{circuit/test_circuit_qasm3.py => qasm3/test_export.py} (100%) diff --git a/test/python/qasm3/__init__.py b/test/python/qasm3/__init__.py new file mode 100644 index 000000000000..599302dae7b0 --- /dev/null +++ b/test/python/qasm3/__init__.py @@ -0,0 +1,13 @@ +# This code is part of Qiskit. +# +# (C) Copyright IBM 2023. +# +# This code is licensed under the Apache License, Version 2.0. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + +"""QASM3 tests.""" diff --git a/test/python/circuit/test_circuit_qasm3.py b/test/python/qasm3/test_export.py similarity index 100% rename from test/python/circuit/test_circuit_qasm3.py rename to test/python/qasm3/test_export.py