-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Qiskit/documentation into d…
…ocs-updates
- Loading branch information
Showing
638 changed files
with
47,263 additions
and
5,273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ translations | |
scripts/js/lib/api/testdata | ||
.mypy_cache | ||
public/images | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "qiskit-addon-cutting", | ||
"version": "0.9.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
{ | ||
"title": "Circuit cutting", | ||
"children": [ | ||
{ | ||
"title": "API index", | ||
"url": "/api/qiskit-addon-cutting" | ||
}, | ||
{ | ||
"title": "qiskit_addon_cutting", | ||
"children": [ | ||
{ | ||
"title": "Module overview", | ||
"url": "/api/qiskit-addon-cutting" | ||
}, | ||
{ | ||
"title": "BaseQPDGate", | ||
"url": "/api/qiskit-addon-cutting/qpd-base-qpd-gate" | ||
}, | ||
{ | ||
"title": "bit_count", | ||
"url": "/api/qiskit-addon-cutting/utils-bitwise-bit-count" | ||
}, | ||
{ | ||
"title": "CommutingObservableGroup", | ||
"url": "/api/qiskit-addon-cutting/utils-observable-grouping-commuting-observable-group" | ||
}, | ||
{ | ||
"title": "ConsolidateResets", | ||
"url": "/api/qiskit-addon-cutting/utils-transpiler-passes-consolidate-resets" | ||
}, | ||
{ | ||
"title": "cut_gates", | ||
"url": "/api/qiskit-addon-cutting/cut-gates" | ||
}, | ||
{ | ||
"title": "cut_wires", | ||
"url": "/api/qiskit-addon-cutting/cut-wires" | ||
}, | ||
{ | ||
"title": "CutWire", | ||
"url": "/api/qiskit-addon-cutting/instructions-cut-wire" | ||
}, | ||
{ | ||
"title": "decompose_qpd_instructions", | ||
"url": "/api/qiskit-addon-cutting/qpd-decompose-qpd-instructions" | ||
}, | ||
{ | ||
"title": "DeviceConstraints", | ||
"url": "/api/qiskit-addon-cutting/device-constraints" | ||
}, | ||
{ | ||
"title": "ExactSampler", | ||
"url": "/api/qiskit-addon-cutting/utils-simulation-exact-sampler" | ||
}, | ||
{ | ||
"title": "expand_observables", | ||
"url": "/api/qiskit-addon-cutting/expand-observables" | ||
}, | ||
{ | ||
"title": "find_cuts", | ||
"url": "/api/qiskit-addon-cutting/find-cuts" | ||
}, | ||
{ | ||
"title": "generate_cutting_experiments", | ||
"url": "/api/qiskit-addon-cutting/generate-cutting-experiments" | ||
}, | ||
{ | ||
"title": "generate_qpd_weights", | ||
"url": "/api/qiskit-addon-cutting/qpd-generate-qpd-weights" | ||
}, | ||
{ | ||
"title": "Move", | ||
"url": "/api/qiskit-addon-cutting/instructions-move" | ||
}, | ||
{ | ||
"title": "ObservableCollection", | ||
"url": "/api/qiskit-addon-cutting/utils-observable-grouping-observable-collection" | ||
}, | ||
{ | ||
"title": "observables_restricted_to_subsystem", | ||
"url": "/api/qiskit-addon-cutting/utils-observable-grouping-observables-restricted-to-subsystem" | ||
}, | ||
{ | ||
"title": "OptimizationParameters", | ||
"url": "/api/qiskit-addon-cutting/optimization-parameters" | ||
}, | ||
{ | ||
"title": "partition_circuit_qubits", | ||
"url": "/api/qiskit-addon-cutting/partition-circuit-qubits" | ||
}, | ||
{ | ||
"title": "partition_problem", | ||
"url": "/api/qiskit-addon-cutting/partition-problem" | ||
}, | ||
{ | ||
"title": "PartitionedCuttingProblem", | ||
"url": "/api/qiskit-addon-cutting/partitioned-cutting-problem" | ||
}, | ||
{ | ||
"title": "QPDBasis", | ||
"url": "/api/qiskit-addon-cutting/qpd-qpd-basis" | ||
}, | ||
{ | ||
"title": "qpdbasis_from_instruction", | ||
"url": "/api/qiskit-addon-cutting/qpd-qpdbasis-from-instruction" | ||
}, | ||
{ | ||
"title": "reconstruct_expectation_values", | ||
"url": "/api/qiskit-addon-cutting/reconstruct-expectation-values" | ||
}, | ||
{ | ||
"title": "RemoveFinalReset", | ||
"url": "/api/qiskit-addon-cutting/utils-transpiler-passes-remove-final-reset" | ||
}, | ||
{ | ||
"title": "separate_circuit", | ||
"url": "/api/qiskit-addon-cutting/utils-transforms-separate-circuit" | ||
}, | ||
{ | ||
"title": "SeparatedCircuits", | ||
"url": "/api/qiskit-addon-cutting/utils-transforms-separated-circuits" | ||
}, | ||
{ | ||
"title": "simulate_statevector_outcomes", | ||
"url": "/api/qiskit-addon-cutting/utils-simulation-simulate-statevector-outcomes" | ||
}, | ||
{ | ||
"title": "SingleQubitQPDGate", | ||
"url": "/api/qiskit-addon-cutting/qpd-single-qubit-qpd-gate" | ||
}, | ||
{ | ||
"title": "TwoQubitQPDGate", | ||
"url": "/api/qiskit-addon-cutting/qpd-two-qubit-qpd-gate" | ||
}, | ||
{ | ||
"title": "unique_by_eq", | ||
"url": "/api/qiskit-addon-cutting/utils-iteration-unique-by-eq" | ||
}, | ||
{ | ||
"title": "unique_by_id", | ||
"url": "/api/qiskit-addon-cutting/utils-iteration-unique-by-id" | ||
}, | ||
{ | ||
"title": "WeightType", | ||
"url": "/api/qiskit-addon-cutting/qpd-weight-type" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Release notes", | ||
"url": "/api/qiskit-addon-cutting/release-notes" | ||
} | ||
], | ||
"collapsed": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: cut_gates | ||
description: API reference for qiskit_addon_cutting.cut_gates | ||
in_page_toc_min_heading_level: 1 | ||
python_api_type: function | ||
python_api_name: qiskit_addon_cutting.cut_gates | ||
--- | ||
|
||
<span id="qiskit-addon-cutting-cut-gates" /> | ||
|
||
# qiskit\_addon\_cutting.cut\_gates | ||
|
||
<Function id="qiskit_addon_cutting.cut_gates" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit-addon-cutting/tree/stable/0.9/qiskit_addon_cutting/cutting_decomposition.py" signature="cut_gates(circuit, gate_ids, inplace=False)"> | ||
Transform specified gates into [`TwoQubitQPDGate`](qpd-two-qubit-qpd-gate "qiskit_addon_cutting.qpd.TwoQubitQPDGate")s. | ||
|
||
**Parameters** | ||
|
||
* **circuit** ([`QuantumCircuit`](/api/qiskit/qiskit.circuit.QuantumCircuit "(in Qiskit v1.2)")) – The circuit containing gates to be decomposed | ||
* **gate\_ids** ([`Sequence`](https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence "(in Python v3.13)")\[[`int`](https://docs.python.org/3/library/functions.html#int "(in Python v3.13)")]) – The indices of the gates to decompose | ||
* **inplace** ([`bool`](https://docs.python.org/3/library/functions.html#bool "(in Python v3.13)")) – Flag denoting whether to copy the input circuit before acting on it | ||
|
||
**Return type** | ||
|
||
[`tuple`](https://docs.python.org/3/library/stdtypes.html#tuple "(in Python v3.13)")\[[`QuantumCircuit`](/api/qiskit/qiskit.circuit.QuantumCircuit "(in Qiskit v1.2)"), [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.13)")\[[`QPDBasis`](qpd-qpd-basis "qiskit_addon_cutting.qpd.qpd_basis.QPDBasis")]] | ||
|
||
**Returns** | ||
|
||
A copy of the input circuit with the specified gates replaced with [`TwoQubitQPDGate`](qpd-two-qubit-qpd-gate "qiskit_addon_cutting.qpd.TwoQubitQPDGate")s and a list of [`QPDBasis`](qpd-qpd-basis "qiskit_addon_cutting.qpd.QPDBasis") instances – one for each decomposed gate. | ||
|
||
**Raises** | ||
|
||
[**ValueError**](https://docs.python.org/3/library/exceptions.html#ValueError "(in Python v3.13)") – The input circuit should contain no classical bits or registers. | ||
</Function> | ||
|
Oops, something went wrong.