Skip to content

Commit 84a388b

Browse files
qBraid hardware modal (#1333)
Added the qBraid hardware modal to the vqe, intro to qaoa and variational classifier demos. Added the qBraid logo to the _static/hardware_logos folder.
1 parent 28e42b3 commit 84a388b

File tree

8 files changed

+24
-5
lines changed

8 files changed

+24
-5
lines changed

_static/hardware_logos/qbraid.png

151 KB
Loading

demonstrations/tutorial_qaoa_intro.metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,12 @@
2929
"weight": 1.0
3030
}
3131
],
32+
"hardware": [
33+
{
34+
"id": "qbraid",
35+
"link": "https://account.qbraid.com?gitHubUrl=https://github.com/PennyLaneAI/pennylane-demo-notebooks.git",
36+
"logo": "/_static/hardware_logos/qbraid.png"
37+
}
38+
],
3239
"discussionForumUrl": "https://discuss.pennylane.ai/t/qaoa-and-optimization/5188"
3340
}

demonstrations/tutorial_qaoa_intro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
When considering quantum circuits, it is often convenient to define them by a
3939
series of quantum gates. But there are many instances where
4040
it is useful to think of a quantum circuit in terms of a
41-
`Hamiltonian <https://en.wikipedia.org/wiki/Hamiltonian_(quantum_mechanics)>`__.
41+
`Hamiltonian <https://pennylane.ai/codebook/hamiltonian-time-evolution/hamiltonians>`__.
4242
Indeed, gates are physically implemented by performing time evolution under a carefully engineered
4343
Hamiltonian. These transformations are described by the time evolution operator,
4444
which is a unitary defined as:"""

demonstrations/tutorial_variational_classifier.metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,12 @@
3939
"weight": 1.0
4040
}
4141
],
42+
"hardware": [
43+
{
44+
"id": "qbraid",
45+
"link": "https://account.qbraid.com?gitHubUrl=https://github.com/PennyLaneAI/pennylane-demo-notebooks.git",
46+
"logo": "/_static/hardware_logos/qbraid.png"
47+
}
48+
],
4249
"discussionForumUrl": "https://discuss.pennylane.ai/t/variational-classifier-demo-question-on-padding/3367"
4350
}

demonstrations/tutorial_variational_classifier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ def circuit(weights, x):
128128
def variational_classifier(weights, bias, x):
129129
return circuit(weights, x) + bias
130130

131-
132131
##############################################################################
133132
# Cost
134133
# ~~~~

demonstrations/tutorial_vqe.metadata.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@
7373
"id": "aws",
7474
"link": "https://github.com/amazon-braket/amazon-braket-examples/blob/main/examples/pennylane/3_Hydrogen_Molecule_geometry_with_VQE/3_Hydrogen_Molecule_geometry_with_VQE.ipynb",
7575
"logo": "/_static/hardware_logos/aws.png"
76+
},
77+
{
78+
"id": "qbraid",
79+
"link": "https://account.qbraid.com?gitHubUrl=https://github.com/PennyLaneAI/pennylane-demo-notebooks.git",
80+
"logo": "/_static/hardware_logos/qbraid.png"
7681
}
7782
],
7883
"discussionForumUrl": "https://discuss.pennylane.ai/t/a-brief-overview-of-vqe-demo/7333"

demonstrations/tutorial_vqe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
# where :math:`\theta` is the variational parameter to be optimized in order to find
109109
# the best approximation to the true ground state. In the Jordan-Wigner [#seeley2012]_ encoding,
110110
# the first term :math:`|1100\rangle` represents the `Hartree-Fock (HF) state
111-
# <https://en.wikipedia.org/wiki/Hartree%E2%80%93Fock_method>`_ where the two electrons in
111+
# <https://pennylane.ai/blog/2022/09/how-to-use-the-hartree-fock-method-in-pennylane>`_ where the two electrons in
112112
# the molecule occupy the lowest-energy orbitals. The second term :math:`|0011\rangle`
113113
# encodes a double excitation of the HF state where the two particles are excited from
114114
# qubits 0, 1 to 2, 3.

metadata_schemas/objects/hardware.schema.0.1.0.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"enum": [
1111
"aws",
1212
"covalent",
13-
"bluequbit"
13+
"bluequbit",
14+
"qbraid"
1415
]
1516
},
1617
"link": {
@@ -26,4 +27,4 @@
2627
"required": [
2728
"id", "link", "logo"
2829
]
29-
}
30+
}

0 commit comments

Comments
 (0)