From d70531900823d31037b26a75c374ae7d75a98aba Mon Sep 17 00:00:00 2001 From: Austin Huang <65315367+austingmhuang@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:27:38 -0400 Subject: [PATCH] Update pennylane/registers.py Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com> --- pennylane/registers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pennylane/registers.py b/pennylane/registers.py index c33a481c309..f7572420d0b 100644 --- a/pennylane/registers.py +++ b/pennylane/registers.py @@ -22,12 +22,12 @@ def registers(register_dict): """ Returns a dictionary that maps register names to :class:`~.Wires`. - This function helps us group qubits and abstract away the finer details of running quantum - algorithms. Wire register names and their total number of wires are typically known in advance, + This function helps to group qubits and abstract away the finer details of running quantum + algorithms. Register names and their total number of wires are typically known in advance, but managing the specific wire range for each register can be a challenge. The ``qml.registers()`` function creates a dictionary that maps register name to :class:`~.Wires` object. Moreover, - it is possible to input a nested structure where registers contain sub-registers, as illustrated - in the example below. + it allows to input a nested structure where registers contain sub-registers, as illustrated + in the examples below. Args: register_dict (dict): a dictionary where keys are register names and values are either