Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force LF style line endings in all text files #13928

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Default all text files to use LF line endings
* text eol=lf

visualization/references/*.{txt,tex} text eol=auto
# Mark PNG files as binary so git doesn't try to mess with the line endings
*.png binary
8 changes: 4 additions & 4 deletions releasenotes/notes/0.23/fix-aqc-check-if-su-matrix.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fixes:
- |
Fixed an issue with the approximate quantum compiler (:class:`~qiskit.transpiler.synthesis.aqc.AQC`) that caused
it to return a wrong circuit when the unitary has a determinant −1.
fixes:
- |
Fixed an issue with the approximate quantum compiler (:class:`~qiskit.transpiler.synthesis.aqc.AQC`) that caused
it to return a wrong circuit when the unitary has a determinant −1.

Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
---
features:
- |
Implemented :class:`.UniformSuperpositionGate` class, which allows
the creation of a uniform superposition state using
the Shukla-Vedula algorithm. This feature facilitates the
creation of quantum circuits that produce a uniform superposition
state :math:`\frac{1}{\sqrt{M}} \sum_{j=0}^{M-1} |j\rangle`, where
:math:`M` is a positive integer representing the number of
computational basis states with an amplitude of
:math:`\frac{1}{\sqrt{M}}`. This implementation supports the
efficient creation of uniform superposition states,
requiring only :math:`O(\log_2 (M))` qubits and
:math:`O(\log_2 (M))` gates. Usage example:
.. code-block:: python
from qiskit import QuantumCircuit
from qiskit.circuit.library.data_preparation import UniformSuperpositionGate
M = 5
num_qubits = 3
usp_gate = UniformSuperpositionGate(M, num_qubits)
qc = QuantumCircuit(num_qubits)
qc.append(usp_gate, list(range(num_qubits)))
qc.draw()
---
features:
- |
Implemented :class:`.UniformSuperpositionGate` class, which allows
the creation of a uniform superposition state using
the Shukla-Vedula algorithm. This feature facilitates the
creation of quantum circuits that produce a uniform superposition
state :math:`\frac{1}{\sqrt{M}} \sum_{j=0}^{M-1} |j\rangle`, where
:math:`M` is a positive integer representing the number of
computational basis states with an amplitude of
:math:`\frac{1}{\sqrt{M}}`. This implementation supports the
efficient creation of uniform superposition states,
requiring only :math:`O(\log_2 (M))` qubits and
:math:`O(\log_2 (M))` gates. Usage example:

.. code-block:: python

from qiskit import QuantumCircuit
from qiskit.circuit.library.data_preparation import UniformSuperpositionGate

M = 5
num_qubits = 3
usp_gate = UniformSuperpositionGate(M, num_qubits)
qc = QuantumCircuit(num_qubits)
qc.append(usp_gate, list(range(num_qubits)))

qc.draw()
Loading