Skip to content

Commit

Permalink
Merge branch 'master' into np
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Feb 16, 2024
2 parents de3ea51 + 10cba6b commit 98cf3d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/psf/black
rev: 24.1.1
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
6 changes: 3 additions & 3 deletions src/qibo/quantum_info/random_ensembles.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def _ppf(self, theta: float):


def uniform_sampling_U3(ngates: int, seed=None, backend=None):
"""Samples parameters for Haar-random :math:`U_{3}`s (:class:`qibo.gates.U3`).
"""Samples parameters for Haar-random :class:`qibo.gates.U3`.
Args:
ngates (int): Total number of :math:`U_{3}`s to be sampled.
ngates (int): Total number of :math:`U_{3}` gates to be sampled.
seed (int or :class:`numpy.random.Generator`, optional): Either a generator of random
numbers or a fixed seed to initialize a generator. If ``None``, initializes
a generator with a random seed. Default: ``None``.
Expand All @@ -44,7 +44,7 @@ def uniform_sampling_U3(ngates: int, seed=None, backend=None):
Defaults to ``None``.
Returns:
(ndarray): array of shape (``ngates``, :math:`3`).
ndarray: array of shape (``ngates``, :math:`3`).
"""
if not isinstance(ngates, int):
raise_error(
Expand Down

0 comments on commit 98cf3d3

Please sign in to comment.