Skip to content

Commit

Permalink
Merge f91fac0 into ccc1e3d
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson committed Mar 27, 2024
2 parents ccc1e3d + f91fac0 commit 8f1a647
Show file tree
Hide file tree
Showing 29 changed files with 4,695 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
- name: Install tox
run: |
python -m pip install --upgrade pip
Expand Down
18 changes: 18 additions & 0 deletions circuit_knitting/cutting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
:toctree: ../stubs/
:nosignatures:
find_cuts
cut_wires
expand_observables
partition_circuit_qubits
Expand Down Expand Up @@ -60,6 +61,17 @@
qpd.decompose_qpd_instructions
qpd.qpdbasis_from_instruction
Automatic Cut Finding
=====================
.. autosummary::
:toctree: ../stubs/
:nosignatures:
:template: autosummary/class_no_inherited_members.rst
cut_finding.OptimizationParameters
cut_finding.DeviceConstraints
CutQC
=====
Expand All @@ -82,11 +94,15 @@
cut_gates,
PartitionedCuttingProblem,
)
from .find_cuts import find_cuts
from .cutting_experiments import generate_cutting_experiments
from .cutting_reconstruction import reconstruct_expectation_values
from .wire_cutting_transforms import cut_wires, expand_observables
from .cut_finding.quantum_device_constraints import DeviceConstraints
from .cut_finding.optimization_settings import OptimizationParameters

__all__ = [
"find_cuts",
"partition_circuit_qubits",
"partition_problem",
"cut_gates",
Expand All @@ -95,4 +111,6 @@
"PartitionedCuttingProblem",
"cut_wires",
"expand_observables",
"DeviceConstraints",
"OptimizationParameters",
]
15 changes: 15 additions & 0 deletions circuit_knitting/cutting/cut_finding/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# (C) Copyright IBM 2024.

# 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.

"""Main automated cut finding functionality."""

from .optimization_settings import OptimizationParameters
from .quantum_device_constraints import DeviceConstraints

__all__ = ["DeviceConstraints", "OptimizationParameters"]
Loading

0 comments on commit 8f1a647

Please sign in to comment.