{"payload":{"allShortcutsEnabled":false,"fileTree":{"qiskit/circuit/classicalfunction":{"items":[{"name":"__init__.py","path":"qiskit/circuit/classicalfunction/__init__.py","contentType":"file"},{"name":"boolean_expression.py","path":"qiskit/circuit/classicalfunction/boolean_expression.py","contentType":"file"},{"name":"classical_element.py","path":"qiskit/circuit/classicalfunction/classical_element.py","contentType":"file"},{"name":"classical_function_visitor.py","path":"qiskit/circuit/classicalfunction/classical_function_visitor.py","contentType":"file"},{"name":"classicalfunction.py","path":"qiskit/circuit/classicalfunction/classicalfunction.py","contentType":"file"},{"name":"exceptions.py","path":"qiskit/circuit/classicalfunction/exceptions.py","contentType":"file"},{"name":"types.py","path":"qiskit/circuit/classicalfunction/types.py","contentType":"file"},{"name":"utils.py","path":"qiskit/circuit/classicalfunction/utils.py","contentType":"file"}],"totalCount":8},"qiskit/circuit":{"items":[{"name":"classical","path":"qiskit/circuit/classical","contentType":"directory"},{"name":"classicalfunction","path":"qiskit/circuit/classicalfunction","contentType":"directory"},{"name":"controlflow","path":"qiskit/circuit/controlflow","contentType":"directory"},{"name":"library","path":"qiskit/circuit/library","contentType":"directory"},{"name":"random","path":"qiskit/circuit/random","contentType":"directory"},{"name":"tools","path":"qiskit/circuit/tools","contentType":"directory"},{"name":"__init__.py","path":"qiskit/circuit/__init__.py","contentType":"file"},{"name":"_classical_resource_map.py","path":"qiskit/circuit/_classical_resource_map.py","contentType":"file"},{"name":"_standard_gates_commutations.py","path":"qiskit/circuit/_standard_gates_commutations.py","contentType":"file"},{"name":"_utils.py","path":"qiskit/circuit/_utils.py","contentType":"file"},{"name":"add_control.py","path":"qiskit/circuit/add_control.py","contentType":"file"},{"name":"annotated_operation.py","path":"qiskit/circuit/annotated_operation.py","contentType":"file"},{"name":"barrier.py","path":"qiskit/circuit/barrier.py","contentType":"file"},{"name":"bit.py","path":"qiskit/circuit/bit.py","contentType":"file"},{"name":"classicalregister.py","path":"qiskit/circuit/classicalregister.py","contentType":"file"},{"name":"commutation_checker.py","path":"qiskit/circuit/commutation_checker.py","contentType":"file"},{"name":"commutation_library.py","path":"qiskit/circuit/commutation_library.py","contentType":"file"},{"name":"controlledgate.py","path":"qiskit/circuit/controlledgate.py","contentType":"file"},{"name":"delay.py","path":"qiskit/circuit/delay.py","contentType":"file"},{"name":"duration.py","path":"qiskit/circuit/duration.py","contentType":"file"},{"name":"equivalence.py","path":"qiskit/circuit/equivalence.py","contentType":"file"},{"name":"equivalence_library.py","path":"qiskit/circuit/equivalence_library.py","contentType":"file"},{"name":"exceptions.py","path":"qiskit/circuit/exceptions.py","contentType":"file"},{"name":"gate.py","path":"qiskit/circuit/gate.py","contentType":"file"},{"name":"instruction.py","path":"qiskit/circuit/instruction.py","contentType":"file"},{"name":"instructionset.py","path":"qiskit/circuit/instructionset.py","contentType":"file"},{"name":"measure.py","path":"qiskit/circuit/measure.py","contentType":"file"},{"name":"operation.py","path":"qiskit/circuit/operation.py","contentType":"file"},{"name":"parameter.py","path":"qiskit/circuit/parameter.py","contentType":"file"},{"name":"parameterexpression.py","path":"qiskit/circuit/parameterexpression.py","contentType":"file"},{"name":"parametertable.py","path":"qiskit/circuit/parametertable.py","contentType":"file"},{"name":"parametervector.py","path":"qiskit/circuit/parametervector.py","contentType":"file"},{"name":"quantumcircuit.py","path":"qiskit/circuit/quantumcircuit.py","contentType":"file"},{"name":"quantumcircuitdata.py","path":"qiskit/circuit/quantumcircuitdata.py","contentType":"file"},{"name":"quantumregister.py","path":"qiskit/circuit/quantumregister.py","contentType":"file"},{"name":"register.py","path":"qiskit/circuit/register.py","contentType":"file"},{"name":"reset.py","path":"qiskit/circuit/reset.py","contentType":"file"},{"name":"singleton.py","path":"qiskit/circuit/singleton.py","contentType":"file"},{"name":"store.py","path":"qiskit/circuit/store.py","contentType":"file"}],"totalCount":39},"qiskit":{"items":[{"name":"assembler","path":"qiskit/assembler","contentType":"directory"},{"name":"circuit","path":"qiskit/circuit","contentType":"directory"},{"name":"compiler","path":"qiskit/compiler","contentType":"directory"},{"name":"converters","path":"qiskit/converters","contentType":"directory"},{"name":"dagcircuit","path":"qiskit/dagcircuit","contentType":"directory"},{"name":"passmanager","path":"qiskit/passmanager","contentType":"directory"},{"name":"primitives","path":"qiskit/primitives","contentType":"directory"},{"name":"providers","path":"qiskit/providers","contentType":"directory"},{"name":"pulse","path":"qiskit/pulse","contentType":"directory"},{"name":"qasm","path":"qiskit/qasm","contentType":"directory"},{"name":"qasm2","path":"qiskit/qasm2","contentType":"directory"},{"name":"qasm3","path":"qiskit/qasm3","contentType":"directory"},{"name":"qobj","path":"qiskit/qobj","contentType":"directory"},{"name":"qpy","path":"qiskit/qpy","contentType":"directory"},{"name":"quantum_info","path":"qiskit/quantum_info","contentType":"directory"},{"name":"result","path":"qiskit/result","contentType":"directory"},{"name":"scheduler","path":"qiskit/scheduler","contentType":"directory"},{"name":"synthesis","path":"qiskit/synthesis","contentType":"directory"},{"name":"transpiler","path":"qiskit/transpiler","contentType":"directory"},{"name":"utils","path":"qiskit/utils","contentType":"directory"},{"name":"visualization","path":"qiskit/visualization","contentType":"directory"},{"name":"VERSION.txt","path":"qiskit/VERSION.txt","contentType":"file"},{"name":"__init__.py","path":"qiskit/__init__.py","contentType":"file"},{"name":"exceptions.py","path":"qiskit/exceptions.py","contentType":"file"},{"name":"user_config.py","path":"qiskit/user_config.py","contentType":"file"},{"name":"version.py","path":"qiskit/version.py","contentType":"file"}],"totalCount":26},"":{"items":[{"name":".azure","path":".azure","contentType":"directory"},{"name":".binder","path":".binder","contentType":"directory"},{"name":".cargo","path":".cargo","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":"crates","path":"crates","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"qiskit","path":"qiskit","contentType":"directory"},{"name":"releasenotes","path":"releasenotes","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".git-blame-ignore-revs","path":".git-blame-ignore-revs","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".local-spellings","path":".local-spellings","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":".mergify.yml","path":".mergify.yml","contentType":"file"},{"name":".stestr.conf","path":".stestr.conf","contentType":"file"},{"name":"CITATION.bib","path":"CITATION.bib","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"Cargo.lock","path":"Cargo.lock","contentType":"file"},{"name":"Cargo.toml","path":"Cargo.toml","contentType":"file"},{"name":"DEPRECATION.md","path":"DEPRECATION.md","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"MAINTAINING.md","path":"MAINTAINING.md","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"asv.conf.json","path":"asv.conf.json","contentType":"file"},{"name":"azure-pipelines.yml","path":"azure-pipelines.yml","contentType":"file"},{"name":"constraints.txt","path":"constraints.txt","contentType":"file"},{"name":"pyproject.toml","path":"pyproject.toml","contentType":"file"},{"name":"qiskit_bot.yaml","path":"qiskit_bot.yaml","contentType":"file"},{"name":"requirements-dev.txt","path":"requirements-dev.txt","contentType":"file"},{"name":"requirements-optional.txt","path":"requirements-optional.txt","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"rust-toolchain.toml","path":"rust-toolchain.toml","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"}],"totalCount":41}},"fileTreeProcessingTime":20.959062,"foldersToFetch":[],"repo":{"id":83821669,"defaultBranch":"main","name":"qiskit","ownerLogin":"Qiskit","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-03-03T17:02:42.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/30696987?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1710785011.0","canEdit":false,"refType":"branch","currentOid":"43381ae1b159c01b55159d2dc1e8a65970b72746"},"path":"qiskit/circuit/classicalfunction/classicalfunction.py","currentUser":null,"blob":{"rawLines":["# This code is part of Qiskit.","#","# (C) Copyright IBM 2020.","#","# 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.","","\"\"\"ClassicalFunction class\"\"\"","","import ast","from typing import Callable, Optional","","from qiskit.circuit import QuantumCircuit, QuantumRegister","from qiskit.exceptions import QiskitError","from qiskit.utils.optionals import HAS_TWEEDLEDUM","from .classical_element import ClassicalElement","from .classical_function_visitor import ClassicalFunctionVisitor","from .utils import tweedledum2qiskit","","","@HAS_TWEEDLEDUM.require_in_instance","class ClassicalFunction(ClassicalElement):"," \"\"\"Represent a classical function and its logic network.\"\"\"",""," def __init__(self, source, name=None):"," \"\"\"Creates a ``ClassicalFunction`` from Python source code in ``source``.",""," The code should be a single function with types.",""," Args:"," source (str): Python code with type hints."," name (str): Optional. Default: \"*classicalfunction*\". ClassicalFunction name.",""," Raises:"," QiskitError: If source is not a string."," \"\"\""," if not isinstance(source, str):"," raise QiskitError(\"ClassicalFunction needs a source code as a string.\")"," self._ast = ast.parse(source)"," self._network = None"," self._scopes = None"," self._args = None"," self._truth_table = None"," super().__init__("," name or \"*classicalfunction*\","," num_qubits=sum(qreg.size for qreg in self.qregs),"," params=[],"," )",""," def compile(self):"," \"\"\"Parses and creates the logical circuit\"\"\""," _classical_function_visitor = ClassicalFunctionVisitor()"," _classical_function_visitor.visit(self._ast)"," self._network = _classical_function_visitor._network"," self._scopes = _classical_function_visitor.scopes"," self._args = _classical_function_visitor.args"," self.name = _classical_function_visitor.name",""," @property"," def network(self):"," \"\"\"Returns the logical network\"\"\""," if self._network is None:"," self.compile()"," return self._network",""," @property"," def scopes(self):"," \"\"\"Returns the scope dict\"\"\""," if self._scopes is None:"," self.compile()"," return self._scopes",""," @property"," def args(self):"," \"\"\"Returns the classicalfunction arguments\"\"\""," if self._args is None:"," self.compile()"," return self._args",""," @property"," def types(self):"," \"\"\"Dumps a list of scopes with their variables and types.",""," Returns:"," list(dict): A list of scopes as dicts, where key is the variable name and"," value is its type."," \"\"\""," ret = []"," for scope in self.scopes:"," ret.append({k: v[0] for k, v in scope.items()})"," return ret",""," def simulate(self, bitstring: str) -> bool:"," \"\"\"Evaluate the expression on a bitstring.",""," This evaluation is done classically.",""," Args:"," bitstring: The bitstring for which to evaluate.",""," Returns:"," bool: result of the evaluation."," \"\"\""," from tweedledum.classical import simulate # pylint: disable=import-error",""," return simulate(self._network, bitstring)",""," def simulate_all(self):"," \"\"\""," Returns a truth table.",""," Returns:"," str: a bitstring with a truth table"," \"\"\""," result = []"," for position in range(2 ** self._network.num_pis()):"," sim_result = \"\".join([str(int(tt[position])) for tt in self.truth_table])"," result.append(sim_result)",""," return \"\".join(reversed(result))",""," @property"," def truth_table(self):"," \"\"\"Returns (and computes) the truth table\"\"\""," from tweedledum.classical import simulate # pylint: disable=import-error",""," if self._truth_table is None:"," self._truth_table = simulate(self._network)"," return self._truth_table",""," def synth("," self,"," registerless: bool = True,"," synthesizer: Optional[Callable[[ClassicalElement], QuantumCircuit]] = None,"," ) -> QuantumCircuit:"," \"\"\"Synthesis the logic network into a :class:`~qiskit.circuit.QuantumCircuit`.",""," Args:"," registerless: Default ``True``. If ``False`` uses the parameter names to create"," registers with those names. Otherwise, creates a circuit with a flat quantum register."," synthesizer: Optional. If None tweedledum's pkrm_synth is used.",""," Returns:"," QuantumCircuit: A circuit implementing the logic network."," \"\"\""," if registerless:"," qregs = None"," else:"," qregs = self.qregs",""," if synthesizer:"," return synthesizer(self)",""," from tweedledum.synthesis import pkrm_synth # pylint: disable=import-error",""," return tweedledum2qiskit(pkrm_synth(self.truth_table[0]), name=self.name, qregs=qregs)",""," def _define(self):"," \"\"\"The definition of the classical function is its synthesis\"\"\""," self.definition = self.synth()",""," @property"," def qregs(self):"," \"\"\"The list of qregs used by the classicalfunction\"\"\""," qregs = [QuantumRegister(1, name=arg) for arg in self.args if self.types[0][arg] == \"Int1\"]"," if self.types[0][\"return\"] == \"Int1\":"," qregs.append(QuantumRegister(1, name=\"return\"))"," return qregs"],"stylingDirectives":[[{"start":0,"end":30,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":25,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":70,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":71,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":69,"cssClass":"pl-c"}],[{"start":0,"end":72,"cssClass":"pl-c"}],[{"start":0,"end":49,"cssClass":"pl-c"}],[],[{"start":0,"end":29,"cssClass":"pl-s"}],[],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":10,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":27,"cssClass":"pl-v"},{"start":29,"end":37,"cssClass":"pl-v"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":19,"cssClass":"pl-s1"},{"start":20,"end":26,"cssClass":"pl-k"},{"start":27,"end":41,"cssClass":"pl-v"},{"start":43,"end":58,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":22,"cssClass":"pl-s1"},{"start":23,"end":29,"cssClass":"pl-k"},{"start":30,"end":41,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-s1"},{"start":12,"end":17,"cssClass":"pl-s1"},{"start":18,"end":27,"cssClass":"pl-s1"},{"start":28,"end":34,"cssClass":"pl-k"},{"start":35,"end":49,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":23,"cssClass":"pl-s1"},{"start":24,"end":30,"cssClass":"pl-k"},{"start":31,"end":47,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":32,"cssClass":"pl-s1"},{"start":33,"end":39,"cssClass":"pl-k"},{"start":40,"end":64,"cssClass":"pl-v"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":11,"cssClass":"pl-s1"},{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":36,"cssClass":"pl-s1"}],[],[],[{"start":0,"end":35,"cssClass":"pl-en"},{"start":1,"end":15,"cssClass":"pl-v"},{"start":16,"end":35,"cssClass":"pl-s1"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":23,"cssClass":"pl-v"},{"start":24,"end":40,"cssClass":"pl-v"}],[{"start":4,"end":63,"cssClass":"pl-s"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":16,"cssClass":"pl-en"},{"start":17,"end":21,"cssClass":"pl-s1"},{"start":23,"end":29,"cssClass":"pl-s1"},{"start":31,"end":35,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-c1"},{"start":36,"end":40,"cssClass":"pl-c1"}],[{"start":8,"end":81,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":56,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":13,"cssClass":"pl-s"}],[{"start":0,"end":54,"cssClass":"pl-s"}],[{"start":0,"end":89,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":15,"cssClass":"pl-s"}],[{"start":0,"end":51,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":14,"cssClass":"pl-c1"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":32,"cssClass":"pl-s1"},{"start":34,"end":37,"cssClass":"pl-s1"}],[{"start":12,"end":17,"cssClass":"pl-k"},{"start":18,"end":29,"cssClass":"pl-v"},{"start":30,"end":82,"cssClass":"pl-s"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":23,"cssClass":"pl-s1"},{"start":24,"end":29,"cssClass":"pl-en"},{"start":30,"end":36,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":28,"cssClass":"pl-c1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":27,"cssClass":"pl-c1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":25,"cssClass":"pl-c1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":25,"cssClass":"pl-s1"},{"start":26,"end":27,"cssClass":"pl-c1"},{"start":28,"end":32,"cssClass":"pl-c1"}],[{"start":8,"end":13,"cssClass":"pl-en"},{"start":16,"end":24,"cssClass":"pl-en"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":19,"cssClass":"pl-c1"},{"start":20,"end":41,"cssClass":"pl-s"}],[{"start":12,"end":22,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":23,"end":26,"cssClass":"pl-en"},{"start":27,"end":31,"cssClass":"pl-s1"},{"start":32,"end":36,"cssClass":"pl-s1"},{"start":37,"end":40,"cssClass":"pl-k"},{"start":41,"end":45,"cssClass":"pl-s1"},{"start":46,"end":48,"cssClass":"pl-c1"},{"start":49,"end":53,"cssClass":"pl-s1"},{"start":54,"end":59,"cssClass":"pl-s1"}],[{"start":12,"end":18,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"}],[],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":15,"cssClass":"pl-en"},{"start":16,"end":20,"cssClass":"pl-s1"}],[{"start":8,"end":52,"cssClass":"pl-s"}],[{"start":8,"end":35,"cssClass":"pl-s1"},{"start":36,"end":37,"cssClass":"pl-c1"},{"start":38,"end":62,"cssClass":"pl-v"}],[{"start":8,"end":35,"cssClass":"pl-s1"},{"start":36,"end":41,"cssClass":"pl-en"},{"start":42,"end":46,"cssClass":"pl-s1"},{"start":47,"end":51,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":51,"cssClass":"pl-s1"},{"start":52,"end":60,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":50,"cssClass":"pl-s1"},{"start":51,"end":57,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":48,"cssClass":"pl-s1"},{"start":49,"end":53,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":47,"cssClass":"pl-s1"},{"start":48,"end":52,"cssClass":"pl-s1"}],[],[{"start":4,"end":13,"cssClass":"pl-en"},{"start":5,"end":13,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":15,"cssClass":"pl-en"},{"start":16,"end":20,"cssClass":"pl-s1"}],[{"start":8,"end":41,"cssClass":"pl-s"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":24,"cssClass":"pl-s1"},{"start":25,"end":27,"cssClass":"pl-c1"},{"start":28,"end":32,"cssClass":"pl-c1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":24,"cssClass":"pl-en"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":28,"cssClass":"pl-s1"}],[],[{"start":4,"end":13,"cssClass":"pl-en"},{"start":5,"end":13,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":14,"cssClass":"pl-en"},{"start":15,"end":19,"cssClass":"pl-s1"}],[{"start":8,"end":36,"cssClass":"pl-s"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":23,"cssClass":"pl-s1"},{"start":24,"end":26,"cssClass":"pl-c1"},{"start":27,"end":31,"cssClass":"pl-c1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":24,"cssClass":"pl-en"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":27,"cssClass":"pl-s1"}],[],[{"start":4,"end":13,"cssClass":"pl-en"},{"start":5,"end":13,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":12,"cssClass":"pl-en"},{"start":13,"end":17,"cssClass":"pl-s1"}],[{"start":8,"end":53,"cssClass":"pl-s"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":21,"cssClass":"pl-s1"},{"start":22,"end":24,"cssClass":"pl-c1"},{"start":25,"end":29,"cssClass":"pl-c1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":24,"cssClass":"pl-en"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":25,"cssClass":"pl-s1"}],[],[{"start":4,"end":13,"cssClass":"pl-en"},{"start":5,"end":13,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":13,"cssClass":"pl-en"},{"start":14,"end":18,"cssClass":"pl-s1"}],[{"start":8,"end":65,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":85,"cssClass":"pl-s"}],[{"start":0,"end":30,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":11,"cssClass":"pl-s1"},{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":17,"cssClass":"pl-s1"},{"start":18,"end":20,"cssClass":"pl-c1"},{"start":21,"end":25,"cssClass":"pl-s1"},{"start":26,"end":32,"cssClass":"pl-s1"}],[{"start":12,"end":15,"cssClass":"pl-s1"},{"start":16,"end":22,"cssClass":"pl-en"},{"start":24,"end":25,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-s1"},{"start":29,"end":30,"cssClass":"pl-c1"},{"start":32,"end":35,"cssClass":"pl-k"},{"start":36,"end":37,"cssClass":"pl-s1"},{"start":39,"end":40,"cssClass":"pl-s1"},{"start":41,"end":43,"cssClass":"pl-c1"},{"start":44,"end":49,"cssClass":"pl-s1"},{"start":50,"end":55,"cssClass":"pl-en"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":18,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":16,"cssClass":"pl-en"},{"start":17,"end":21,"cssClass":"pl-s1"},{"start":23,"end":32,"cssClass":"pl-s1"},{"start":34,"end":37,"cssClass":"pl-s1"},{"start":39,"end":41,"cssClass":"pl-c1"},{"start":42,"end":46,"cssClass":"pl-s1"}],[{"start":8,"end":50,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":44,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":13,"cssClass":"pl-s"}],[{"start":0,"end":59,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":43,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":12,"cssClass":"pl-k"},{"start":13,"end":23,"cssClass":"pl-s1"},{"start":24,"end":33,"cssClass":"pl-s1"},{"start":34,"end":40,"cssClass":"pl-k"},{"start":41,"end":49,"cssClass":"pl-s1"},{"start":51,"end":81,"cssClass":"pl-c"}],[],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":23,"cssClass":"pl-en"},{"start":24,"end":28,"cssClass":"pl-s1"},{"start":29,"end":37,"cssClass":"pl-s1"},{"start":39,"end":48,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":20,"cssClass":"pl-en"},{"start":21,"end":25,"cssClass":"pl-s1"}],[{"start":8,"end":11,"cssClass":"pl-s"}],[{"start":0,"end":30,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":47,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-s1"},{"start":15,"end":16,"cssClass":"pl-c1"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":20,"cssClass":"pl-s1"},{"start":21,"end":23,"cssClass":"pl-c1"},{"start":24,"end":29,"cssClass":"pl-en"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":32,"end":34,"cssClass":"pl-c1"},{"start":35,"end":39,"cssClass":"pl-s1"},{"start":40,"end":48,"cssClass":"pl-s1"},{"start":49,"end":56,"cssClass":"pl-en"}],[{"start":12,"end":22,"cssClass":"pl-s1"},{"start":23,"end":24,"cssClass":"pl-c1"},{"start":25,"end":27,"cssClass":"pl-s"},{"start":28,"end":32,"cssClass":"pl-en"},{"start":34,"end":37,"cssClass":"pl-en"},{"start":38,"end":41,"cssClass":"pl-en"},{"start":42,"end":44,"cssClass":"pl-s1"},{"start":45,"end":53,"cssClass":"pl-s1"},{"start":57,"end":60,"cssClass":"pl-k"},{"start":61,"end":63,"cssClass":"pl-s1"},{"start":64,"end":66,"cssClass":"pl-c1"},{"start":67,"end":71,"cssClass":"pl-s1"},{"start":72,"end":83,"cssClass":"pl-s1"}],[{"start":12,"end":18,"cssClass":"pl-s1"},{"start":19,"end":25,"cssClass":"pl-en"},{"start":26,"end":36,"cssClass":"pl-s1"}],[],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":17,"cssClass":"pl-s"},{"start":18,"end":22,"cssClass":"pl-en"},{"start":23,"end":31,"cssClass":"pl-en"},{"start":32,"end":38,"cssClass":"pl-s1"}],[],[{"start":4,"end":13,"cssClass":"pl-en"},{"start":5,"end":13,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":19,"cssClass":"pl-en"},{"start":20,"end":24,"cssClass":"pl-s1"}],[{"start":8,"end":52,"cssClass":"pl-s"}],[{"start":8,"end":12,"cssClass":"pl-k"},{"start":13,"end":23,"cssClass":"pl-s1"},{"start":24,"end":33,"cssClass":"pl-s1"},{"start":34,"end":40,"cssClass":"pl-k"},{"start":41,"end":49,"cssClass":"pl-s1"},{"start":51,"end":81,"cssClass":"pl-c"}],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":28,"cssClass":"pl-s1"},{"start":29,"end":31,"cssClass":"pl-c1"},{"start":32,"end":36,"cssClass":"pl-c1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":29,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":32,"end":40,"cssClass":"pl-en"},{"start":41,"end":45,"cssClass":"pl-s1"},{"start":46,"end":54,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":32,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":13,"cssClass":"pl-en"}],[{"start":8,"end":12,"cssClass":"pl-s1"}],[{"start":8,"end":20,"cssClass":"pl-s1"},{"start":22,"end":26,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-c1"},{"start":29,"end":33,"cssClass":"pl-c1"}],[{"start":8,"end":19,"cssClass":"pl-s1"},{"start":21,"end":29,"cssClass":"pl-v"},{"start":30,"end":38,"cssClass":"pl-v"},{"start":40,"end":56,"cssClass":"pl-v"},{"start":59,"end":73,"cssClass":"pl-v"},{"start":76,"end":77,"cssClass":"pl-c1"},{"start":78,"end":82,"cssClass":"pl-c1"}],[{"start":6,"end":8,"cssClass":"pl-c1"},{"start":9,"end":23,"cssClass":"pl-v"}],[{"start":8,"end":86,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":13,"cssClass":"pl-s"}],[{"start":0,"end":91,"cssClass":"pl-s"}],[{"start":0,"end":98,"cssClass":"pl-s"}],[{"start":0,"end":75,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":69,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":23,"cssClass":"pl-s1"}],[{"start":12,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":24,"cssClass":"pl-c1"}],[{"start":8,"end":12,"cssClass":"pl-k"}],[{"start":12,"end":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":24,"cssClass":"pl-s1"},{"start":25,"end":30,"cssClass":"pl-s1"}],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":22,"cssClass":"pl-s1"}],[{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":30,"cssClass":"pl-en"},{"start":31,"end":35,"cssClass":"pl-s1"}],[],[{"start":8,"end":12,"cssClass":"pl-k"},{"start":13,"end":23,"cssClass":"pl-s1"},{"start":24,"end":33,"cssClass":"pl-s1"},{"start":34,"end":40,"cssClass":"pl-k"},{"start":41,"end":51,"cssClass":"pl-s1"},{"start":53,"end":83,"cssClass":"pl-c"}],[],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":32,"cssClass":"pl-en"},{"start":33,"end":43,"cssClass":"pl-en"},{"start":44,"end":48,"cssClass":"pl-s1"},{"start":49,"end":60,"cssClass":"pl-s1"},{"start":61,"end":62,"cssClass":"pl-c1"},{"start":66,"end":70,"cssClass":"pl-s1"},{"start":70,"end":71,"cssClass":"pl-c1"},{"start":71,"end":75,"cssClass":"pl-s1"},{"start":76,"end":80,"cssClass":"pl-s1"},{"start":82,"end":87,"cssClass":"pl-s1"},{"start":87,"end":88,"cssClass":"pl-c1"},{"start":88,"end":93,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":15,"cssClass":"pl-en"},{"start":16,"end":20,"cssClass":"pl-s1"}],[{"start":8,"end":71,"cssClass":"pl-s"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":23,"cssClass":"pl-s1"},{"start":24,"end":25,"cssClass":"pl-c1"},{"start":26,"end":30,"cssClass":"pl-s1"},{"start":31,"end":36,"cssClass":"pl-en"}],[],[{"start":4,"end":13,"cssClass":"pl-en"},{"start":5,"end":13,"cssClass":"pl-s1"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":13,"cssClass":"pl-en"},{"start":14,"end":18,"cssClass":"pl-s1"}],[{"start":8,"end":61,"cssClass":"pl-s"}],[{"start":8,"end":13,"cssClass":"pl-s1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":17,"end":32,"cssClass":"pl-v"},{"start":33,"end":34,"cssClass":"pl-c1"},{"start":36,"end":40,"cssClass":"pl-s1"},{"start":40,"end":41,"cssClass":"pl-c1"},{"start":41,"end":44,"cssClass":"pl-s1"},{"start":46,"end":49,"cssClass":"pl-k"},{"start":50,"end":53,"cssClass":"pl-s1"},{"start":54,"end":56,"cssClass":"pl-c1"},{"start":57,"end":61,"cssClass":"pl-s1"},{"start":62,"end":66,"cssClass":"pl-s1"},{"start":67,"end":69,"cssClass":"pl-k"},{"start":70,"end":74,"cssClass":"pl-s1"},{"start":75,"end":80,"cssClass":"pl-s1"},{"start":81,"end":82,"cssClass":"pl-c1"},{"start":84,"end":87,"cssClass":"pl-s1"},{"start":89,"end":91,"cssClass":"pl-c1"},{"start":92,"end":98,"cssClass":"pl-s"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"},{"start":16,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":25,"end":33,"cssClass":"pl-s"},{"start":35,"end":37,"cssClass":"pl-c1"},{"start":38,"end":44,"cssClass":"pl-s"}],[{"start":12,"end":17,"cssClass":"pl-s1"},{"start":18,"end":24,"cssClass":"pl-en"},{"start":25,"end":40,"cssClass":"pl-v"},{"start":41,"end":42,"cssClass":"pl-c1"},{"start":44,"end":48,"cssClass":"pl-s1"},{"start":48,"end":49,"cssClass":"pl-c1"},{"start":49,"end":57,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":20,"cssClass":"pl-s1"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/Qiskit/qiskit/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"classicalfunction.py","displayUrl":"https://github.com/Qiskit/qiskit/blob/main/qiskit/circuit/classicalfunction/classicalfunction.py?raw=true","headerInfo":{"blobSize":"5.61 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"8ce9fc0","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FQiskit%2Fqiskit%2Fblob%2Fmain%2Fqiskit%2Fcircuit%2Fclassicalfunction%2Fclassicalfunction.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"173","truncatedSloc":"140"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/Qiskit/qiskit/blob/main/qiskit/circuit/classicalfunction/classicalfunction.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/Qiskit/qiskit/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/Qiskit/qiskit/raw/main/qiskit/circuit/classicalfunction/classicalfunction.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":4,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"ClassicalFunction","kind":"class","ident_start":904,"ident_end":921,"extent_start":898,"extent_end":5747,"fully_qualified_name":"ClassicalFunction","ident_utf16":{"start":{"line_number":26,"utf16_col":6},"end":{"line_number":26,"utf16_col":23}},"extent_utf16":{"start":{"line_number":26,"utf16_col":0},"end":{"line_number":172,"utf16_col":20}}},{"name":"__init__","kind":"function","ident_start":1014,"ident_end":1022,"extent_start":1010,"extent_end":1871,"fully_qualified_name":"ClassicalFunction.__init__","ident_utf16":{"start":{"line_number":29,"utf16_col":8},"end":{"line_number":29,"utf16_col":16}},"extent_utf16":{"start":{"line_number":29,"utf16_col":4},"end":{"line_number":52,"utf16_col":9}}},{"name":"compile","kind":"function","ident_start":1881,"ident_end":1888,"extent_start":1877,"extent_end":2292,"fully_qualified_name":"ClassicalFunction.compile","ident_utf16":{"start":{"line_number":54,"utf16_col":8},"end":{"line_number":54,"utf16_col":15}},"extent_utf16":{"start":{"line_number":54,"utf16_col":4},"end":{"line_number":61,"utf16_col":52}}},{"name":"network","kind":"function","ident_start":2316,"ident_end":2323,"extent_start":2312,"extent_end":2462,"fully_qualified_name":"ClassicalFunction.network","ident_utf16":{"start":{"line_number":64,"utf16_col":8},"end":{"line_number":64,"utf16_col":15}},"extent_utf16":{"start":{"line_number":64,"utf16_col":4},"end":{"line_number":68,"utf16_col":28}}},{"name":"scopes","kind":"function","ident_start":2486,"ident_end":2492,"extent_start":2482,"extent_end":2624,"fully_qualified_name":"ClassicalFunction.scopes","ident_utf16":{"start":{"line_number":71,"utf16_col":8},"end":{"line_number":71,"utf16_col":14}},"extent_utf16":{"start":{"line_number":71,"utf16_col":4},"end":{"line_number":75,"utf16_col":27}}},{"name":"args","kind":"function","ident_start":2648,"ident_end":2652,"extent_start":2644,"extent_end":2797,"fully_qualified_name":"ClassicalFunction.args","ident_utf16":{"start":{"line_number":78,"utf16_col":8},"end":{"line_number":78,"utf16_col":12}},"extent_utf16":{"start":{"line_number":78,"utf16_col":4},"end":{"line_number":82,"utf16_col":25}}},{"name":"types","kind":"function","ident_start":2821,"ident_end":2826,"extent_start":2817,"extent_end":3176,"fully_qualified_name":"ClassicalFunction.types","ident_utf16":{"start":{"line_number":85,"utf16_col":8},"end":{"line_number":85,"utf16_col":13}},"extent_utf16":{"start":{"line_number":85,"utf16_col":4},"end":{"line_number":95,"utf16_col":18}}},{"name":"simulate","kind":"function","ident_start":3186,"ident_end":3194,"extent_start":3182,"extent_end":3604,"fully_qualified_name":"ClassicalFunction.simulate","ident_utf16":{"start":{"line_number":97,"utf16_col":8},"end":{"line_number":97,"utf16_col":16}},"extent_utf16":{"start":{"line_number":97,"utf16_col":4},"end":{"line_number":110,"utf16_col":49}}},{"name":"simulate_all","kind":"function","ident_start":3614,"ident_end":3626,"extent_start":3610,"extent_end":4001,"fully_qualified_name":"ClassicalFunction.simulate_all","ident_utf16":{"start":{"line_number":112,"utf16_col":8},"end":{"line_number":112,"utf16_col":20}},"extent_utf16":{"start":{"line_number":112,"utf16_col":4},"end":{"line_number":124,"utf16_col":40}}},{"name":"truth_table","kind":"function","ident_start":4025,"ident_end":4036,"extent_start":4021,"extent_end":4306,"fully_qualified_name":"ClassicalFunction.truth_table","ident_utf16":{"start":{"line_number":127,"utf16_col":8},"end":{"line_number":127,"utf16_col":19}},"extent_utf16":{"start":{"line_number":127,"utf16_col":4},"end":{"line_number":133,"utf16_col":32}}},{"name":"synth","kind":"function","ident_start":4316,"ident_end":4321,"extent_start":4312,"extent_end":5287,"fully_qualified_name":"ClassicalFunction.synth","ident_utf16":{"start":{"line_number":135,"utf16_col":8},"end":{"line_number":135,"utf16_col":13}},"extent_utf16":{"start":{"line_number":135,"utf16_col":4},"end":{"line_number":160,"utf16_col":94}}},{"name":"_define","kind":"function","ident_start":5297,"ident_end":5304,"extent_start":5293,"extent_end":5422,"fully_qualified_name":"ClassicalFunction._define","ident_utf16":{"start":{"line_number":162,"utf16_col":8},"end":{"line_number":162,"utf16_col":15}},"extent_utf16":{"start":{"line_number":162,"utf16_col":4},"end":{"line_number":164,"utf16_col":38}}},{"name":"qregs","kind":"function","ident_start":5446,"ident_end":5451,"extent_start":5442,"extent_end":5747,"fully_qualified_name":"ClassicalFunction.qregs","ident_utf16":{"start":{"line_number":167,"utf16_col":8},"end":{"line_number":167,"utf16_col":13}},"extent_utf16":{"start":{"line_number":167,"utf16_col":4},"end":{"line_number":172,"utf16_col":20}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/Qiskit/qiskit/branches":{"post":"WVkv9Kdi-6pf86FjxWgOXqTJ3TVSAbDTAm9HGpBGKTg17TRaRQLgcGI-Nget-vXYzN83CZnpI5anpqpMDeB20A"},"/repos/preferences":{"post":"iZF1xWl9sJCfoTB_f-Thanpq8nUl4r1SFeSs1ohfsYlPw0jORQrHIgy436m_reoWr3l5QovZE80NetnGzg04Bg"}}},"title":"qiskit/qiskit/circuit/classicalfunction/classicalfunction.py at main ยท Qiskit/qiskit"}