Source code for qiskit_addon_cutting.instructions.cut_wire
# This code is a Qiskit project.## (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."""Single-qubit instruction to denote a wire cut location."""from__future__importannotationsfromqiskit.circuitimportGate,QuantumCircuit
[docs]classCutWire(Gate):"""An instruction for denoting a wire cut location."""def__init__(self,label:str|None=None):"""Create CutWire instruction."""super().__init__("cut_wire",1,[],label)def_define(self):circuit=QuantumCircuit(1,name=self.name)self.definition=circuit