{"payload":{"allShortcutsEnabled":false,"fileTree":{"qiskit/result/distributions":{"items":[{"name":"__init__.py","path":"qiskit/result/distributions/__init__.py","contentType":"file"},{"name":"probability.py","path":"qiskit/result/distributions/probability.py","contentType":"file"},{"name":"quasi.py","path":"qiskit/result/distributions/quasi.py","contentType":"file"}],"totalCount":3},"qiskit/result":{"items":[{"name":"distributions","path":"qiskit/result/distributions","contentType":"directory"},{"name":"mitigation","path":"qiskit/result/mitigation","contentType":"directory"},{"name":"__init__.py","path":"qiskit/result/__init__.py","contentType":"file"},{"name":"counts.py","path":"qiskit/result/counts.py","contentType":"file"},{"name":"exceptions.py","path":"qiskit/result/exceptions.py","contentType":"file"},{"name":"models.py","path":"qiskit/result/models.py","contentType":"file"},{"name":"postprocess.py","path":"qiskit/result/postprocess.py","contentType":"file"},{"name":"result.py","path":"qiskit/result/result.py","contentType":"file"},{"name":"sampled_expval.py","path":"qiskit/result/sampled_expval.py","contentType":"file"},{"name":"utils.py","path":"qiskit/result/utils.py","contentType":"file"}],"totalCount":10},"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":13.662232,"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/result/distributions/probability.py","currentUser":null,"blob":{"rawLines":["# This code is part of Qiskit.","#","# (C) Copyright IBM 2021.","#","# 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.","\"\"\"Class for probability distributions.\"\"\"","","import re","","","# NOTE: A dict subclass should not overload any dunder methods like __getitem__","# this can cause unexpected behavior and issues as the cPython dict","# implementation has many standard methods in C for performance and the dunder","# methods are not always used as expected. For example, update() doesn't call","# __setitem__ so overloading __setitem__ would not always provide the expected","# result","class ProbDistribution(dict):"," \"\"\"A generic dict-like class for probability distributions.\"\"\"",""," _bitstring_regex = re.compile(r\"^[01]+$\")",""," def __init__(self, data, shots=None):"," \"\"\"Builds a probability distribution object.",""," Args:"," data (dict): Input probability data. Where the keys"," represent a measured classical value and the value is a"," float for the probability of that result."," The keys can be one of several formats:",""," * A hexadecimal string of the form ``\"0x4a\"``"," * A bit string e.g. ``'0b1011'`` or ``\"01011\"``"," * An integer",""," shots (int): Number of shots the distribution was derived from.",""," Raises:"," TypeError: If the input keys are not a string or int"," ValueError: If the string format of the keys is incorrect"," \"\"\""," self.shots = shots"," self._num_bits = 0"," if data:"," first_key = next(iter(data.keys()))"," if isinstance(first_key, int):"," # `self._num_bits` is not always the exact number of qubits measured,"," # but the number of bits to represent the largest key."," self._num_bits = len(bin(max(data.keys()))) - 2"," elif isinstance(first_key, str):"," if first_key.startswith(\"0x\") or first_key.startswith(\"0b\"):"," data = {int(key, 0): value for key, value in data.items()}"," # `self._num_bits` is not always the exact number of qubits measured,"," # but the number of bits to represent the largest key."," self._num_bits = len(bin(max(data.keys()))) - 2"," elif self._bitstring_regex.search(first_key):"," # `self._num_bits` is the exact number of qubits measured."," self._num_bits = max(len(key) for key in data)"," data = {int(key, 2): value for key, value in data.items()}"," else:"," raise ValueError("," \"The input keys are not a valid string format, must either \""," \"be a hex string prefixed by '0x' or a binary string \""," \"optionally prefixed with 0b\""," )"," else:"," raise TypeError(\"Input data's keys are of invalid type, must be str or int\")"," super().__init__(data)",""," def binary_probabilities(self, num_bits=None):"," \"\"\"Build a probabilities dictionary with binary string keys",""," Parameters:"," num_bits (int): number of bits in the binary bitstrings (leading"," zeros will be padded). If None, a default value will be used."," If keys are given as integers or strings with binary or hex prefix,"," the default value will be derived from the largest key present."," If keys are given as bitstrings without prefix,"," the default value will be derived from the largest key length.",""," Returns:"," dict: A dictionary where the keys are binary strings in the format"," ``\"0110\"``"," \"\"\""," n = self._num_bits if num_bits is None else num_bits"," return {format(key, \"b\").zfill(n): value for key, value in self.items()}",""," def hex_probabilities(self):"," \"\"\"Build a probabilities dictionary with hexadecimal string keys",""," Returns:"," dict: A dictionary where the keys are hexadecimal strings in the"," format ``\"0x1a\"``"," \"\"\""," return {hex(key): value for key, value in self.items()}"],"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":42,"cssClass":"pl-s"}],[],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":9,"cssClass":"pl-s1"}],[],[],[{"start":0,"end":79,"cssClass":"pl-c"}],[{"start":0,"end":67,"cssClass":"pl-c"}],[{"start":0,"end":78,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":78,"cssClass":"pl-c"}],[{"start":0,"end":8,"cssClass":"pl-c"}],[{"start":0,"end":5,"cssClass":"pl-k"},{"start":6,"end":22,"cssClass":"pl-v"},{"start":23,"end":27,"cssClass":"pl-s1"}],[{"start":4,"end":66,"cssClass":"pl-s"}],[],[{"start":4,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":25,"cssClass":"pl-s1"},{"start":26,"end":33,"cssClass":"pl-en"},{"start":34,"end":44,"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":34,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":35,"end":39,"cssClass":"pl-c1"}],[{"start":8,"end":52,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":13,"cssClass":"pl-s"}],[{"start":0,"end":63,"cssClass":"pl-s"}],[{"start":0,"end":71,"cssClass":"pl-s"}],[{"start":0,"end":57,"cssClass":"pl-s"}],[{"start":0,"end":55,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":65,"cssClass":"pl-s"}],[{"start":0,"end":67,"cssClass":"pl-s"}],[{"start":0,"end":32,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":75,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":15,"cssClass":"pl-s"}],[{"start":0,"end":64,"cssClass":"pl-s"}],[{"start":0,"end":69,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":26,"cssClass":"pl-s1"}],[{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":22,"cssClass":"pl-s1"},{"start":23,"end":24,"cssClass":"pl-c1"},{"start":25,"end":26,"cssClass":"pl-c1"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":15,"cssClass":"pl-s1"}],[{"start":12,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":28,"cssClass":"pl-en"},{"start":29,"end":33,"cssClass":"pl-en"},{"start":34,"end":38,"cssClass":"pl-s1"},{"start":39,"end":43,"cssClass":"pl-en"}],[{"start":12,"end":14,"cssClass":"pl-k"},{"start":15,"end":25,"cssClass":"pl-en"},{"start":26,"end":35,"cssClass":"pl-s1"},{"start":37,"end":40,"cssClass":"pl-s1"}],[{"start":16,"end":85,"cssClass":"pl-c"}],[{"start":16,"end":70,"cssClass":"pl-c"}],[{"start":16,"end":20,"cssClass":"pl-s1"},{"start":21,"end":30,"cssClass":"pl-s1"},{"start":31,"end":32,"cssClass":"pl-c1"},{"start":33,"end":36,"cssClass":"pl-en"},{"start":37,"end":40,"cssClass":"pl-en"},{"start":41,"end":44,"cssClass":"pl-en"},{"start":45,"end":49,"cssClass":"pl-s1"},{"start":50,"end":54,"cssClass":"pl-en"},{"start":60,"end":61,"cssClass":"pl-c1"},{"start":62,"end":63,"cssClass":"pl-c1"}],[{"start":12,"end":16,"cssClass":"pl-k"},{"start":17,"end":27,"cssClass":"pl-en"},{"start":28,"end":37,"cssClass":"pl-s1"},{"start":39,"end":42,"cssClass":"pl-s1"}],[{"start":16,"end":18,"cssClass":"pl-k"},{"start":19,"end":28,"cssClass":"pl-s1"},{"start":29,"end":39,"cssClass":"pl-en"},{"start":40,"end":44,"cssClass":"pl-s"},{"start":46,"end":48,"cssClass":"pl-c1"},{"start":49,"end":58,"cssClass":"pl-s1"},{"start":59,"end":69,"cssClass":"pl-en"},{"start":70,"end":74,"cssClass":"pl-s"}],[{"start":20,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":28,"end":31,"cssClass":"pl-en"},{"start":32,"end":35,"cssClass":"pl-s1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":41,"end":46,"cssClass":"pl-s1"},{"start":47,"end":50,"cssClass":"pl-k"},{"start":51,"end":54,"cssClass":"pl-s1"},{"start":56,"end":61,"cssClass":"pl-s1"},{"start":62,"end":64,"cssClass":"pl-c1"},{"start":65,"end":69,"cssClass":"pl-s1"},{"start":70,"end":75,"cssClass":"pl-en"}],[{"start":20,"end":89,"cssClass":"pl-c"}],[{"start":20,"end":74,"cssClass":"pl-c"}],[{"start":20,"end":24,"cssClass":"pl-s1"},{"start":25,"end":34,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-c1"},{"start":37,"end":40,"cssClass":"pl-en"},{"start":41,"end":44,"cssClass":"pl-en"},{"start":45,"end":48,"cssClass":"pl-en"},{"start":49,"end":53,"cssClass":"pl-s1"},{"start":54,"end":58,"cssClass":"pl-en"},{"start":64,"end":65,"cssClass":"pl-c1"},{"start":66,"end":67,"cssClass":"pl-c1"}],[{"start":16,"end":20,"cssClass":"pl-k"},{"start":21,"end":25,"cssClass":"pl-s1"},{"start":26,"end":42,"cssClass":"pl-s1"},{"start":43,"end":49,"cssClass":"pl-en"},{"start":50,"end":59,"cssClass":"pl-s1"}],[{"start":20,"end":78,"cssClass":"pl-c"}],[{"start":20,"end":24,"cssClass":"pl-s1"},{"start":25,"end":34,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-c1"},{"start":37,"end":40,"cssClass":"pl-en"},{"start":41,"end":44,"cssClass":"pl-en"},{"start":45,"end":48,"cssClass":"pl-s1"},{"start":50,"end":53,"cssClass":"pl-k"},{"start":54,"end":57,"cssClass":"pl-s1"},{"start":58,"end":60,"cssClass":"pl-c1"},{"start":61,"end":65,"cssClass":"pl-s1"}],[{"start":20,"end":24,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":28,"end":31,"cssClass":"pl-en"},{"start":32,"end":35,"cssClass":"pl-s1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":41,"end":46,"cssClass":"pl-s1"},{"start":47,"end":50,"cssClass":"pl-k"},{"start":51,"end":54,"cssClass":"pl-s1"},{"start":56,"end":61,"cssClass":"pl-s1"},{"start":62,"end":64,"cssClass":"pl-c1"},{"start":65,"end":69,"cssClass":"pl-s1"},{"start":70,"end":75,"cssClass":"pl-en"}],[{"start":16,"end":20,"cssClass":"pl-k"}],[{"start":20,"end":25,"cssClass":"pl-k"},{"start":26,"end":36,"cssClass":"pl-v"}],[{"start":24,"end":84,"cssClass":"pl-s"}],[{"start":24,"end":78,"cssClass":"pl-s"}],[{"start":24,"end":53,"cssClass":"pl-s"}],[],[{"start":12,"end":16,"cssClass":"pl-k"}],[{"start":16,"end":21,"cssClass":"pl-k"},{"start":22,"end":31,"cssClass":"pl-v"},{"start":32,"end":91,"cssClass":"pl-s"}],[{"start":8,"end":13,"cssClass":"pl-en"},{"start":16,"end":24,"cssClass":"pl-en"},{"start":25,"end":29,"cssClass":"pl-s1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":28,"cssClass":"pl-en"},{"start":29,"end":33,"cssClass":"pl-s1"},{"start":35,"end":43,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-c1"},{"start":44,"end":48,"cssClass":"pl-c1"}],[{"start":8,"end":67,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":19,"cssClass":"pl-s"}],[{"start":0,"end":76,"cssClass":"pl-s"}],[{"start":0,"end":77,"cssClass":"pl-s"}],[{"start":0,"end":83,"cssClass":"pl-s"}],[{"start":0,"end":79,"cssClass":"pl-s"}],[{"start":0,"end":63,"cssClass":"pl-s"}],[{"start":0,"end":78,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":78,"cssClass":"pl-s"}],[{"start":0,"end":26,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":9,"cssClass":"pl-s1"},{"start":10,"end":11,"cssClass":"pl-c1"},{"start":12,"end":16,"cssClass":"pl-s1"},{"start":17,"end":26,"cssClass":"pl-s1"},{"start":27,"end":29,"cssClass":"pl-k"},{"start":30,"end":38,"cssClass":"pl-s1"},{"start":39,"end":41,"cssClass":"pl-c1"},{"start":42,"end":46,"cssClass":"pl-c1"},{"start":47,"end":51,"cssClass":"pl-k"},{"start":52,"end":60,"cssClass":"pl-s1"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":16,"end":22,"cssClass":"pl-en"},{"start":23,"end":26,"cssClass":"pl-s1"},{"start":28,"end":31,"cssClass":"pl-s"},{"start":33,"end":38,"cssClass":"pl-en"},{"start":39,"end":40,"cssClass":"pl-s1"},{"start":43,"end":48,"cssClass":"pl-s1"},{"start":49,"end":52,"cssClass":"pl-k"},{"start":53,"end":56,"cssClass":"pl-s1"},{"start":58,"end":63,"cssClass":"pl-s1"},{"start":64,"end":66,"cssClass":"pl-c1"},{"start":67,"end":71,"cssClass":"pl-s1"},{"start":72,"end":77,"cssClass":"pl-en"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":25,"cssClass":"pl-en"},{"start":26,"end":30,"cssClass":"pl-s1"}],[{"start":8,"end":72,"cssClass":"pl-s"}],[{"start":0,"end":0,"cssClass":"pl-s"}],[{"start":0,"end":16,"cssClass":"pl-s"}],[{"start":0,"end":76,"cssClass":"pl-s"}],[{"start":0,"end":33,"cssClass":"pl-s"}],[{"start":0,"end":11,"cssClass":"pl-s"}],[{"start":8,"end":14,"cssClass":"pl-k"},{"start":16,"end":19,"cssClass":"pl-en"},{"start":20,"end":23,"cssClass":"pl-s1"},{"start":26,"end":31,"cssClass":"pl-s1"},{"start":32,"end":35,"cssClass":"pl-k"},{"start":36,"end":39,"cssClass":"pl-s1"},{"start":41,"end":46,"cssClass":"pl-s1"},{"start":47,"end":49,"cssClass":"pl-c1"},{"start":50,"end":54,"cssClass":"pl-s1"},{"start":55,"end":60,"cssClass":"pl-en"}]],"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":"probability.py","displayUrl":"https://github.com/Qiskit/qiskit/blob/main/qiskit/result/distributions/probability.py?raw=true","headerInfo":{"blobSize":"4.47 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":"4251603","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FQiskit%2Fqiskit%2Fblob%2Fmain%2Fqiskit%2Fresult%2Fdistributions%2Fprobability.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"100","truncatedSloc":"86"},"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/result/distributions/probability.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/result/distributions/probability.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":"ProbDistribution","kind":"class","ident_start":932,"ident_end":948,"extent_start":926,"extent_end":4578,"fully_qualified_name":"ProbDistribution","ident_utf16":{"start":{"line_number":22,"utf16_col":6},"end":{"line_number":22,"utf16_col":22}},"extent_utf16":{"start":{"line_number":22,"utf16_col":0},"end":{"line_number":99,"utf16_col":63}}},{"name":"_bitstring_regex","kind":"constant","ident_start":1028,"ident_end":1044,"extent_start":1028,"extent_end":1069,"fully_qualified_name":"ProbDistribution._bitstring_regex","ident_utf16":{"start":{"line_number":25,"utf16_col":4},"end":{"line_number":25,"utf16_col":20}},"extent_utf16":{"start":{"line_number":25,"utf16_col":4},"end":{"line_number":25,"utf16_col":45}}},{"name":"__init__","kind":"function","ident_start":1079,"ident_end":1087,"extent_start":1075,"extent_end":3385,"fully_qualified_name":"ProbDistribution.__init__","ident_utf16":{"start":{"line_number":27,"utf16_col":8},"end":{"line_number":27,"utf16_col":16}},"extent_utf16":{"start":{"line_number":27,"utf16_col":4},"end":{"line_number":72,"utf16_col":30}}},{"name":"binary_probabilities","kind":"function","ident_start":3395,"ident_end":3415,"extent_start":3391,"extent_end":4266,"fully_qualified_name":"ProbDistribution.binary_probabilities","ident_utf16":{"start":{"line_number":74,"utf16_col":8},"end":{"line_number":74,"utf16_col":28}},"extent_utf16":{"start":{"line_number":74,"utf16_col":4},"end":{"line_number":90,"utf16_col":80}}},{"name":"hex_probabilities","kind":"function","ident_start":4276,"ident_end":4293,"extent_start":4272,"extent_end":4578,"fully_qualified_name":"ProbDistribution.hex_probabilities","ident_utf16":{"start":{"line_number":92,"utf16_col":8},"end":{"line_number":92,"utf16_col":25}},"extent_utf16":{"start":{"line_number":92,"utf16_col":4},"end":{"line_number":99,"utf16_col":63}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/Qiskit/qiskit/branches":{"post":"1d836LkLJVPu1NgdVTSVIBU9x0ajpB5RUcKZlidvNQrWbMOmO9EmGaFAi2CPsoznaEa1ftojP5zP7ELworxRTw"},"/repos/preferences":{"post":"NMnNQxSldkJ6HCKbah0JzaLE3Q-nybmfl0lmTgMes-vT0Y5sRxYGUP3rihvcn52HPc2toCjwkDfXefi9sDqXLg"}}},"title":"qiskit/qiskit/result/distributions/probability.py at main ยท Qiskit/qiskit"}