forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-quantum-instance-backend-v2
- Loading branch information
Showing
19 changed files
with
373 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# This code is part of Qiskit. | ||
# | ||
# (C) Copyright IBM 2017, 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. | ||
|
||
# EditorConfig sets project-wide editor defaults: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file, stop looking higher in the tree | ||
root = true | ||
|
||
# Default settings can be overidden by editorconfig file in a subdir | ||
# or by a specific glob later in this file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
|
||
# Python | ||
[*.py] | ||
indent_size = 4 | ||
|
||
# Javascript | ||
[*.{js,json}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
## Windows files | ||
# [*.bat] | ||
# end_of_line = crlf | ||
|
||
# Makefile | ||
[Makefile] | ||
indent_style = tab | ||
|
||
# Markdown | ||
[*.md] | ||
# trailing whitespace is used for <br/> in md (yuck) | ||
trim_trailing_whitespace = false | ||
|
||
# YAML | ||
[*.{yaml,yml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...otes/notes/add-parameter-prefix-support-to-ZFeatureMap-ZZFeatureMap-ba13832b9a832e88.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
features: | ||
- | | ||
Adds an argument ``parameter_prefix`` to the initializer of | ||
:class:`~qiskit.circuit.library.ZFeatureMap` and | ||
:class:`~qiskit.circuit.library.ZZFeatureMap`, to set the prefix | ||
of parameters of the data encoding circuit:: | ||
from qiskit.circuit.library import ZFeatureMap | ||
feature_map = ZFeatureMap(feature_dimension=4, | ||
parameter_prefix="my_prefix") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bug, where the :class:`~qiskit.opflow.CVaRMeasurement` attempted to convert a | ||
:class:`~qiskit.opflow.PauliSumOp` to a dense matrix to check whether it is diagonal. | ||
For large operators (> 16 qubits) this computation is extremely expensive and raised | ||
an error if not explicitly enabled using ``qiskit.utils.algorithm_globals.massive = True``. |
Oops, something went wrong.