Skip to content

Commit a87ab46

Browse files
authored
Adjust output format in how_to_user_qiskit1_with_pennylane (#1433)
**Title:** Adjust output format in `how_to_user_qiskit1_with_pennylane` **Summary:** Corrected two altered output since last modification. **Relevant references:** **Possible Drawbacks:** **Related GitHub Issues:**
1 parent e8dbfb5 commit a87ab46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demonstrations/how_to_use_qiskit1_with_pennylane.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77
],
88
"dateOfPublication": "2024-07-02T00:00:00+00:00",
9-
"dateOfLastModification": "2025-01-08T00:00:00+00:00",
9+
"dateOfLastModification": "2025-07-10T00:00:00+00:00",
1010
"categories": [
1111
"Quantum Computing",
1212
"How-to"

demonstrations/how_to_use_qiskit1_with_pennylane.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def circuit():
113113
#
114114
# .. code-block:: none
115115
#
116-
# {'0': tensor(474, requires_grad=True), '1': tensor(550, requires_grad=True)}
116+
# {'0': 474, '1': 550}
117117
#
118118

119119
######################################################################
@@ -403,7 +403,7 @@ def cost(phis, theta):
403403
# .. code-block:: none
404404
#
405405
# Optimized parameters: phis = [3.12829384 3.12823583], theta = [3.1310224]
406-
# Optimized cost function val: -2.999796472821245
406+
# Optimized cost function value: -2.999796472821245
407407
#
408408

409409
######################################################################

0 commit comments

Comments
 (0)