{"payload":{"allShortcutsEnabled":false,"fileTree":{"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":17.092583,"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/parametervector.py","currentUser":null,"blob":{"rawLines":["# This code is part of Qiskit.","#","# (C) Copyright IBM 2017, 2019.","#","# 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.","","\"\"\"Parameter Vector Class to simplify management of parameter lists.\"\"\"","","from uuid import uuid4, UUID","","from .parameter import Parameter","","","class ParameterVectorElement(Parameter):"," \"\"\"An element of a ParameterVector.\"\"\"",""," ___slots__ = (\"_vector\", \"_index\")",""," def __init__(self, vector, index, uuid=None):"," super().__init__(f\"{vector.name}[{index}]\", uuid=uuid)"," self._vector = vector"," self._index = index",""," @property"," def index(self):"," \"\"\"Get the index of this element in the parent vector.\"\"\""," return self._index",""," @property"," def vector(self):"," \"\"\"Get the parent vector instance.\"\"\""," return self._vector",""," def __getstate__(self):"," return super().__getstate__() + (self._vector, self._index)",""," def __setstate__(self, state):"," *super_state, vector, index = state"," super().__setstate__(super_state)"," self._vector = vector"," self._index = index","","","class ParameterVector:"," \"\"\"ParameterVector class to quickly generate lists of parameters.\"\"\"",""," __slots__ = (\"_name\", \"_params\", \"_size\", \"_root_uuid\")",""," def __init__(self, name, length=0):"," self._name = name"," self._size = length"," self._root_uuid = uuid4()"," root_uuid_int = self._root_uuid.int"," self._params = ["," ParameterVectorElement(self, i, UUID(int=root_uuid_int + i)) for i in range(length)"," ]",""," @property"," def name(self):"," \"\"\"Returns the name of the ParameterVector.\"\"\""," return self._name",""," @property"," def params(self):"," \"\"\"Returns the list of parameters in the ParameterVector.\"\"\""," return self._params",""," def index(self, value):"," \"\"\"Returns first index of value.\"\"\""," return self._params.index(value)",""," def __getitem__(self, key):"," if isinstance(key, slice):"," start, stop, step = key.indices(self._size)"," return self.params[start:stop:step]",""," if key > self._size:"," raise IndexError(f\"Index out of range: {key} > {self._size}\")"," return self.params[key]",""," def __iter__(self):"," return iter(self.params[: self._size])",""," def __len__(self):"," return self._size",""," def __str__(self):"," return f\"{self.name}, {[str(item) for item in self.params[: self._size]]}\"",""," def __repr__(self):"," return f\"{self.__class__.__name__}(name={self.name}, length={len(self)})\"",""," def resize(self, length):"," \"\"\"Resize the parameter vector.",""," If necessary, new elements are generated. If length is smaller than before, the"," previous elements are cached and not re-generated if the vector is enlarged again."," This is to ensure that the parameter instances do not change."," \"\"\""," if length > len(self._params):"," root_uuid_int = self._root_uuid.int"," self._params.extend("," ["," ParameterVectorElement(self, i, UUID(int=root_uuid_int + i))"," for i in range(len(self._params), length)"," ]"," )"," self._size = length"],"stylingDirectives":[[{"start":0,"end":30,"cssClass":"pl-c"}],[{"start":0,"end":1,"cssClass":"pl-c"}],[{"start":0,"end":31,"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":71,"cssClass":"pl-s"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":9,"cssClass":"pl-s1"},{"start":10,"end":16,"cssClass":"pl-k"},{"start":17,"end":22,"cssClass":"pl-s1"},{"start":24,"end":28,"cssClass":"pl-v"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":15,"cssClass":"pl-s1"},{"start":16,"end":22,"cssClass":"pl-k"},{"start":23,"end":32,"cssClass":"pl-v"}],[],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":28,"cssClass":"pl-v"},{"start":29,"end":38,"cssClass":"pl-v"}],[{"start":4,"end":42,"cssClass":"pl-s"}],[],[{"start":4,"end":14,"cssClass":"pl-s1"},{"start":15,"end":16,"cssClass":"pl-c1"},{"start":18,"end":27,"cssClass":"pl-s"},{"start":29,"end":37,"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":36,"cssClass":"pl-s1"},{"start":38,"end":42,"cssClass":"pl-s1"},{"start":42,"end":43,"cssClass":"pl-c1"},{"start":43,"end":47,"cssClass":"pl-c1"}],[{"start":8,"end":13,"cssClass":"pl-en"},{"start":16,"end":24,"cssClass":"pl-en"},{"start":25,"end":50,"cssClass":"pl-s"},{"start":27,"end":40,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-kos"},{"start":28,"end":34,"cssClass":"pl-s1"},{"start":35,"end":39,"cssClass":"pl-s1"},{"start":39,"end":40,"cssClass":"pl-kos"},{"start":41,"end":48,"cssClass":"pl-s1"},{"start":41,"end":42,"cssClass":"pl-kos"},{"start":42,"end":47,"cssClass":"pl-s1"},{"start":47,"end":48,"cssClass":"pl-kos"},{"start":52,"end":56,"cssClass":"pl-s1"},{"start":56,"end":57,"cssClass":"pl-c1"},{"start":57,"end":61,"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":29,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":19,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":22,"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":13,"cssClass":"pl-en"},{"start":14,"end":18,"cssClass":"pl-s1"}],[{"start":8,"end":65,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":26,"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":45,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":27,"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":14,"cssClass":"pl-k"},{"start":15,"end":20,"cssClass":"pl-en"},{"start":23,"end":35,"cssClass":"pl-en"},{"start":38,"end":39,"cssClass":"pl-c1"},{"start":41,"end":45,"cssClass":"pl-s1"},{"start":46,"end":53,"cssClass":"pl-s1"},{"start":55,"end":59,"cssClass":"pl-s1"},{"start":60,"end":66,"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":27,"end":32,"cssClass":"pl-s1"}],[{"start":8,"end":9,"cssClass":"pl-c1"},{"start":9,"end":20,"cssClass":"pl-s1"},{"start":22,"end":28,"cssClass":"pl-s1"},{"start":30,"end":35,"cssClass":"pl-s1"},{"start":36,"end":37,"cssClass":"pl-c1"},{"start":38,"end":43,"cssClass":"pl-s1"}],[{"start":8,"end":13,"cssClass":"pl-en"},{"start":16,"end":28,"cssClass":"pl-en"},{"start":29,"end":40,"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":29,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":19,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-c1"},{"start":22,"end":27,"cssClass":"pl-s1"}],[],[],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":21,"cssClass":"pl-v"}],[{"start":4,"end":72,"cssClass":"pl-s"}],[],[{"start":4,"end":13,"cssClass":"pl-s1"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":26,"end":35,"cssClass":"pl-s"},{"start":37,"end":44,"cssClass":"pl-s"},{"start":46,"end":58,"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":27,"cssClass":"pl-s1"},{"start":29,"end":35,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-c1"},{"start":36,"end":37,"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-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":27,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":23,"cssClass":"pl-s1"},{"start":24,"end":25,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-en"}],[{"start":8,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":28,"cssClass":"pl-s1"},{"start":29,"end":39,"cssClass":"pl-s1"},{"start":40,"end":43,"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":12,"end":34,"cssClass":"pl-v"},{"start":35,"end":39,"cssClass":"pl-s1"},{"start":41,"end":42,"cssClass":"pl-s1"},{"start":44,"end":48,"cssClass":"pl-v"},{"start":49,"end":52,"cssClass":"pl-s1"},{"start":52,"end":53,"cssClass":"pl-c1"},{"start":53,"end":66,"cssClass":"pl-s1"},{"start":67,"end":68,"cssClass":"pl-c1"},{"start":69,"end":70,"cssClass":"pl-s1"},{"start":73,"end":76,"cssClass":"pl-k"},{"start":77,"end":78,"cssClass":"pl-s1"},{"start":79,"end":81,"cssClass":"pl-c1"},{"start":82,"end":87,"cssClass":"pl-en"},{"start":88,"end":94,"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":54,"cssClass":"pl-s"}],[{"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":14,"cssClass":"pl-en"},{"start":15,"end":19,"cssClass":"pl-s1"}],[{"start":8,"end":68,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":27,"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":20,"end":25,"cssClass":"pl-s1"}],[{"start":8,"end":43,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":27,"cssClass":"pl-s1"},{"start":28,"end":33,"cssClass":"pl-en"},{"start":34,"end":39,"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":26,"end":29,"cssClass":"pl-s1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":21,"cssClass":"pl-en"},{"start":22,"end":25,"cssClass":"pl-s1"},{"start":27,"end":32,"cssClass":"pl-s1"}],[{"start":12,"end":17,"cssClass":"pl-s1"},{"start":19,"end":23,"cssClass":"pl-s1"},{"start":25,"end":29,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-c1"},{"start":32,"end":35,"cssClass":"pl-s1"},{"start":36,"end":43,"cssClass":"pl-en"},{"start":44,"end":48,"cssClass":"pl-s1"},{"start":49,"end":54,"cssClass":"pl-s1"}],[{"start":12,"end":18,"cssClass":"pl-k"},{"start":19,"end":23,"cssClass":"pl-s1"},{"start":24,"end":30,"cssClass":"pl-s1"},{"start":31,"end":36,"cssClass":"pl-s1"},{"start":37,"end":41,"cssClass":"pl-s1"},{"start":42,"end":46,"cssClass":"pl-s1"}],[],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":14,"cssClass":"pl-s1"},{"start":15,"end":16,"cssClass":"pl-c1"},{"start":17,"end":21,"cssClass":"pl-s1"},{"start":22,"end":27,"cssClass":"pl-s1"}],[{"start":12,"end":17,"cssClass":"pl-k"},{"start":18,"end":28,"cssClass":"pl-v"},{"start":29,"end":72,"cssClass":"pl-s"},{"start":51,"end":56,"cssClass":"pl-s1"},{"start":51,"end":52,"cssClass":"pl-kos"},{"start":52,"end":55,"cssClass":"pl-s1"},{"start":55,"end":56,"cssClass":"pl-kos"},{"start":59,"end":71,"cssClass":"pl-s1"},{"start":59,"end":60,"cssClass":"pl-kos"},{"start":60,"end":64,"cssClass":"pl-s1"},{"start":65,"end":70,"cssClass":"pl-s1"},{"start":70,"end":71,"cssClass":"pl-kos"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":26,"cssClass":"pl-s1"},{"start":27,"end":30,"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":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-en"},{"start":20,"end":24,"cssClass":"pl-s1"},{"start":25,"end":31,"cssClass":"pl-s1"},{"start":34,"end":38,"cssClass":"pl-s1"},{"start":39,"end":44,"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":14,"cssClass":"pl-k"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":25,"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":14,"cssClass":"pl-k"},{"start":15,"end":82,"cssClass":"pl-s"},{"start":17,"end":28,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-kos"},{"start":18,"end":22,"cssClass":"pl-s1"},{"start":23,"end":27,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-kos"},{"start":30,"end":81,"cssClass":"pl-s1"},{"start":30,"end":31,"cssClass":"pl-kos"},{"start":32,"end":35,"cssClass":"pl-en"},{"start":36,"end":40,"cssClass":"pl-s1"},{"start":42,"end":45,"cssClass":"pl-k"},{"start":46,"end":50,"cssClass":"pl-s1"},{"start":51,"end":53,"cssClass":"pl-c1"},{"start":54,"end":58,"cssClass":"pl-s1"},{"start":59,"end":65,"cssClass":"pl-s1"},{"start":68,"end":72,"cssClass":"pl-s1"},{"start":73,"end":78,"cssClass":"pl-s1"},{"start":80,"end":81,"cssClass":"pl-kos"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":16,"cssClass":"pl-en"},{"start":17,"end":21,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":15,"end":81,"cssClass":"pl-s"},{"start":17,"end":42,"cssClass":"pl-s1"},{"start":17,"end":18,"cssClass":"pl-kos"},{"start":18,"end":22,"cssClass":"pl-s1"},{"start":23,"end":32,"cssClass":"pl-s1"},{"start":33,"end":41,"cssClass":"pl-s1"},{"start":41,"end":42,"cssClass":"pl-kos"},{"start":48,"end":59,"cssClass":"pl-s1"},{"start":48,"end":49,"cssClass":"pl-kos"},{"start":49,"end":53,"cssClass":"pl-s1"},{"start":54,"end":58,"cssClass":"pl-s1"},{"start":58,"end":59,"cssClass":"pl-kos"},{"start":68,"end":79,"cssClass":"pl-s1"},{"start":68,"end":69,"cssClass":"pl-kos"},{"start":69,"end":72,"cssClass":"pl-en"},{"start":73,"end":77,"cssClass":"pl-s1"},{"start":78,"end":79,"cssClass":"pl-kos"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":14,"cssClass":"pl-en"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":21,"end":27,"cssClass":"pl-s1"}],[{"start":8,"end":39,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":87,"cssClass":"pl-s"}],[{"start":0,"end":90,"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":17,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-c1"},{"start":20,"end":23,"cssClass":"pl-en"},{"start":24,"end":28,"cssClass":"pl-s1"},{"start":29,"end":36,"cssClass":"pl-s1"}],[{"start":12,"end":25,"cssClass":"pl-s1"},{"start":26,"end":27,"cssClass":"pl-c1"},{"start":28,"end":32,"cssClass":"pl-s1"},{"start":33,"end":43,"cssClass":"pl-s1"},{"start":44,"end":47,"cssClass":"pl-s1"}],[{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":24,"cssClass":"pl-s1"},{"start":25,"end":31,"cssClass":"pl-en"}],[],[{"start":20,"end":42,"cssClass":"pl-v"},{"start":43,"end":47,"cssClass":"pl-s1"},{"start":49,"end":50,"cssClass":"pl-s1"},{"start":52,"end":56,"cssClass":"pl-v"},{"start":57,"end":60,"cssClass":"pl-s1"},{"start":60,"end":61,"cssClass":"pl-c1"},{"start":61,"end":74,"cssClass":"pl-s1"},{"start":75,"end":76,"cssClass":"pl-c1"},{"start":77,"end":78,"cssClass":"pl-s1"}],[{"start":20,"end":23,"cssClass":"pl-k"},{"start":24,"end":25,"cssClass":"pl-s1"},{"start":26,"end":28,"cssClass":"pl-c1"},{"start":29,"end":34,"cssClass":"pl-en"},{"start":35,"end":38,"cssClass":"pl-en"},{"start":39,"end":43,"cssClass":"pl-s1"},{"start":44,"end":51,"cssClass":"pl-s1"},{"start":54,"end":60,"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":27,"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":"parametervector.py","displayUrl":"https://github.com/Qiskit/qiskit/blob/main/qiskit/circuit/parametervector.py?raw=true","headerInfo":{"blobSize":"3.5 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":"abc8a6f","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FQiskit%2Fqiskit%2Fblob%2Fmain%2Fqiskit%2Fcircuit%2Fparametervector.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"114","truncatedSloc":"88"},"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/parametervector.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/parametervector.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":"ParameterVectorElement","kind":"class","ident_start":628,"ident_end":650,"extent_start":622,"extent_end":1434,"fully_qualified_name":"ParameterVectorElement","ident_utf16":{"start":{"line_number":19,"utf16_col":6},"end":{"line_number":19,"utf16_col":28}},"extent_utf16":{"start":{"line_number":19,"utf16_col":0},"end":{"line_number":46,"utf16_col":27}}},{"name":"___slots__","kind":"constant","ident_start":711,"ident_end":721,"extent_start":711,"extent_end":745,"fully_qualified_name":"ParameterVectorElement.___slots__","ident_utf16":{"start":{"line_number":22,"utf16_col":4},"end":{"line_number":22,"utf16_col":14}},"extent_utf16":{"start":{"line_number":22,"utf16_col":4},"end":{"line_number":22,"utf16_col":38}}},{"name":"__init__","kind":"function","ident_start":755,"ident_end":763,"extent_start":751,"extent_end":917,"fully_qualified_name":"ParameterVectorElement.__init__","ident_utf16":{"start":{"line_number":24,"utf16_col":8},"end":{"line_number":24,"utf16_col":16}},"extent_utf16":{"start":{"line_number":24,"utf16_col":4},"end":{"line_number":27,"utf16_col":27}}},{"name":"index","kind":"function","ident_start":941,"ident_end":946,"extent_start":937,"extent_end":1046,"fully_qualified_name":"ParameterVectorElement.index","ident_utf16":{"start":{"line_number":30,"utf16_col":8},"end":{"line_number":30,"utf16_col":13}},"extent_utf16":{"start":{"line_number":30,"utf16_col":4},"end":{"line_number":32,"utf16_col":26}}},{"name":"vector","kind":"function","ident_start":1070,"ident_end":1076,"extent_start":1066,"extent_end":1157,"fully_qualified_name":"ParameterVectorElement.vector","ident_utf16":{"start":{"line_number":35,"utf16_col":8},"end":{"line_number":35,"utf16_col":14}},"extent_utf16":{"start":{"line_number":35,"utf16_col":4},"end":{"line_number":37,"utf16_col":27}}},{"name":"__getstate__","kind":"function","ident_start":1167,"ident_end":1179,"extent_start":1163,"extent_end":1254,"fully_qualified_name":"ParameterVectorElement.__getstate__","ident_utf16":{"start":{"line_number":39,"utf16_col":8},"end":{"line_number":39,"utf16_col":20}},"extent_utf16":{"start":{"line_number":39,"utf16_col":4},"end":{"line_number":40,"utf16_col":67}}},{"name":"__setstate__","kind":"function","ident_start":1264,"ident_end":1276,"extent_start":1260,"extent_end":1434,"fully_qualified_name":"ParameterVectorElement.__setstate__","ident_utf16":{"start":{"line_number":42,"utf16_col":8},"end":{"line_number":42,"utf16_col":20}},"extent_utf16":{"start":{"line_number":42,"utf16_col":4},"end":{"line_number":46,"utf16_col":27}}},{"name":"ParameterVector","kind":"class","ident_start":1443,"ident_end":1458,"extent_start":1437,"extent_end":3579,"fully_qualified_name":"ParameterVector","ident_utf16":{"start":{"line_number":49,"utf16_col":6},"end":{"line_number":49,"utf16_col":21}},"extent_utf16":{"start":{"line_number":49,"utf16_col":0},"end":{"line_number":113,"utf16_col":27}}},{"name":"__slots__","kind":"constant","ident_start":1538,"ident_end":1547,"extent_start":1538,"extent_end":1593,"fully_qualified_name":"ParameterVector.__slots__","ident_utf16":{"start":{"line_number":52,"utf16_col":4},"end":{"line_number":52,"utf16_col":13}},"extent_utf16":{"start":{"line_number":52,"utf16_col":4},"end":{"line_number":52,"utf16_col":59}}},{"name":"__init__","kind":"function","ident_start":1603,"ident_end":1611,"extent_start":1599,"extent_end":1897,"fully_qualified_name":"ParameterVector.__init__","ident_utf16":{"start":{"line_number":54,"utf16_col":8},"end":{"line_number":54,"utf16_col":16}},"extent_utf16":{"start":{"line_number":54,"utf16_col":4},"end":{"line_number":61,"utf16_col":9}}},{"name":"name","kind":"function","ident_start":1921,"ident_end":1925,"extent_start":1917,"extent_end":2013,"fully_qualified_name":"ParameterVector.name","ident_utf16":{"start":{"line_number":64,"utf16_col":8},"end":{"line_number":64,"utf16_col":12}},"extent_utf16":{"start":{"line_number":64,"utf16_col":4},"end":{"line_number":66,"utf16_col":25}}},{"name":"params","kind":"function","ident_start":2037,"ident_end":2043,"extent_start":2033,"extent_end":2147,"fully_qualified_name":"ParameterVector.params","ident_utf16":{"start":{"line_number":69,"utf16_col":8},"end":{"line_number":69,"utf16_col":14}},"extent_utf16":{"start":{"line_number":69,"utf16_col":4},"end":{"line_number":71,"utf16_col":27}}},{"name":"index","kind":"function","ident_start":2157,"ident_end":2162,"extent_start":2153,"extent_end":2261,"fully_qualified_name":"ParameterVector.index","ident_utf16":{"start":{"line_number":73,"utf16_col":8},"end":{"line_number":73,"utf16_col":13}},"extent_utf16":{"start":{"line_number":73,"utf16_col":4},"end":{"line_number":75,"utf16_col":40}}},{"name":"__getitem__","kind":"function","ident_start":2271,"ident_end":2282,"extent_start":2267,"extent_end":2569,"fully_qualified_name":"ParameterVector.__getitem__","ident_utf16":{"start":{"line_number":77,"utf16_col":8},"end":{"line_number":77,"utf16_col":19}},"extent_utf16":{"start":{"line_number":77,"utf16_col":4},"end":{"line_number":84,"utf16_col":31}}},{"name":"__iter__","kind":"function","ident_start":2579,"ident_end":2587,"extent_start":2575,"extent_end":2641,"fully_qualified_name":"ParameterVector.__iter__","ident_utf16":{"start":{"line_number":86,"utf16_col":8},"end":{"line_number":86,"utf16_col":16}},"extent_utf16":{"start":{"line_number":86,"utf16_col":4},"end":{"line_number":87,"utf16_col":46}}},{"name":"__len__","kind":"function","ident_start":2651,"ident_end":2658,"extent_start":2647,"extent_end":2691,"fully_qualified_name":"ParameterVector.__len__","ident_utf16":{"start":{"line_number":89,"utf16_col":8},"end":{"line_number":89,"utf16_col":15}},"extent_utf16":{"start":{"line_number":89,"utf16_col":4},"end":{"line_number":90,"utf16_col":25}}},{"name":"__str__","kind":"function","ident_start":2701,"ident_end":2708,"extent_start":2697,"extent_end":2798,"fully_qualified_name":"ParameterVector.__str__","ident_utf16":{"start":{"line_number":92,"utf16_col":8},"end":{"line_number":92,"utf16_col":15}},"extent_utf16":{"start":{"line_number":92,"utf16_col":4},"end":{"line_number":93,"utf16_col":82}}},{"name":"__repr__","kind":"function","ident_start":2808,"ident_end":2816,"extent_start":2804,"extent_end":2905,"fully_qualified_name":"ParameterVector.__repr__","ident_utf16":{"start":{"line_number":95,"utf16_col":8},"end":{"line_number":95,"utf16_col":16}},"extent_utf16":{"start":{"line_number":95,"utf16_col":4},"end":{"line_number":96,"utf16_col":81}}},{"name":"resize","kind":"function","ident_start":2915,"ident_end":2921,"extent_start":2911,"extent_end":3579,"fully_qualified_name":"ParameterVector.resize","ident_utf16":{"start":{"line_number":98,"utf16_col":8},"end":{"line_number":98,"utf16_col":14}},"extent_utf16":{"start":{"line_number":98,"utf16_col":4},"end":{"line_number":113,"utf16_col":27}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/Qiskit/qiskit/branches":{"post":"iSmW2G4n-KwldBGtY_u6z17caSQqv7it1JM_vlOgSxkdwgZHZPJnZGDs916qPWAHMDFRIujDex4uCdY-iM69HQ"},"/repos/preferences":{"post":"UckVxBlk4qKuU4VFozq97fcM_wcB_D9oW50Le8Xxa4xedAb-Naart1XoBqQ3pCZcKyiuFy8dZDTi0qUb36Nfqg"}}},"title":"qiskit/qiskit/circuit/parametervector.py at main ยท Qiskit/qiskit"}