Skip to content

Commit

Permalink
Clean code and adds file descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
y4izus committed Nov 20, 2024
1 parent 7b25638 commit ca7617c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Fixtures used on the tests"""

import logging
import pytest
import numpy as np
Expand Down
2 changes: 2 additions & 0 deletions tests/parametrize_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Common parametrize functions. The ones that are only used in one file are on that file"""

import pytest


Expand Down
3 changes: 2 additions & 1 deletion tests/test_ai_routing_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Unit-testing routing_ai"""
"""Tests for the ai routing pass"""

import pytest

from qiskit import QuantumCircuit
from qiskit.transpiler import PassManager
from qiskit.transpiler.exceptions import TranspilerError
Expand Down
5 changes: 4 additions & 1 deletion tests/test_ai_synthesis_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Unit-testing ai clifford syhtesis for both local and cloud modes"""
"""Tests for the ai synthesis pass"""

import pytest

from qiskit import QuantumCircuit

from qiskit.transpiler import PassManager

from qiskit_ibm_transpiler.ai.collection import (
Expand Down
13 changes: 8 additions & 5 deletions tests/test_collection_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""Unit-testing collection"""
"""Tests for the collector pass"""

import pytest

from qiskit import QuantumCircuit
from qiskit.transpiler import PassManager
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager

from qiskit_ibm_transpiler.ai.collection import CollectPermutations
from qiskit_ibm_transpiler.ai.collection import CollectLinearFunctions
from qiskit_ibm_transpiler.ai.collection import CollectCliffords
from qiskit_ibm_transpiler.ai.collection import CollectPauliNetworks
from qiskit_ibm_transpiler.ai.collection import (
CollectPermutations,
CollectLinearFunctions,
CollectCliffords,
CollectPauliNetworks,
)


def create_linear_circuit(n_qubits, gates):
Expand Down

0 comments on commit ca7617c

Please sign in to comment.