Skip to content

Commit

Permalink
Removing 'custom_operators' option
Browse files Browse the repository at this point in the history
  • Loading branch information
HGSilveri committed Dec 6, 2024
1 parent 0c70b71 commit 7b5a293
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pulser-core/pulser/backend/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def from_operator_repr(
eigenstates: Sequence[Eigenstate],
n_qudits: int,
operations: FullOp,
custom_operators: Mapping[str, QuditOp] = {},
) -> OperatorType:
"""Create an operator from the operator representation.
Expand All @@ -129,14 +128,11 @@ def from_operator_repr(
By default it identifies strings 'ij' as single-qudit operators, where
i and j are eigenstates that denote |i><j|.
Nonetheless, additional symbols can be defined in custom_operators.
Args:
eigenstates: The eigenstates to use.
n_qubits: How many qubits there are in the system.
operations: The full operator representation.
custom_operators: Additional symbols and their corresponding
single-qudit operators.
Returns:
The constructed operator.
Expand Down

0 comments on commit 7b5a293

Please sign in to comment.