Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaks to full example based on review (Qiskit#80)
Browse files Browse the repository at this point in the history
* tweaks based on review

* one more tweak
nonhermitian authored Oct 6, 2021
1 parent 0661e7a commit e4c8908
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorials/sample_vqe_program/qiskit_runtime_vqe_program.ipynb
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
"## Prerequisites\n",
"\n",
"- You must have Qiskit 0.30+ installed.\n",
"- You must have an IBM Quantum account with the ability to upload a runtime program. **Currently there is no way to know if you have runtime upload ability outside of an email from IBM**."
"- You must have an IBM Quantum account with the ability to upload a runtime program. You have this ability if you belong to more than one provider."
]
},
{
@@ -96,7 +96,7 @@
"source": [
"## Specifying the form of the input values\n",
"\n",
"All inputs to runtime programs must be serializable objects. That is to say, whatever you pass into a runtime program must be able to be converted to JSON format. It is thus beneficial to keep inputs limited to basic data types and structures unless you have experience with custom object serialization, or they are common Qiskit types such as ``QuantumCircuit`` etc. Fortunately, the VQE program described above can be made out of simple Python components.\n",
"All inputs to runtime programs must be serializable objects. That is to say, whatever you pass into a runtime program must be able to be converted to JSON format. It is thus beneficial to keep inputs limited to basic data types and structures unless you have experience with custom object serialization, or they are common Qiskit types such as ``QuantumCircuit`` etc that the built-in `RuntimeEncoder` can handle. Fortunately, the VQE program described above can be made out of simple Python components.\n",
"\n",
"First, it is possible to represent any Hamiltonian using a list of values with each containing the numerical coefficeint for each term and the string representation for the Pauli operators. For the above example, the ground state energy with $A=1$ is $-3$ and we can write it as:"
]
@@ -641,7 +641,7 @@
"id": "0d73dc6e",
"metadata": {},
"source": [
"Here the returned `program_id` is the same as the program `name` given in the metadata. However, this need not be the case if there are multiple programs with the same name. In that case, `program_id` is the unique identifier that needs to be used in calling the program later."
"Here the returned `program_id` is the same as the program `name` given in the metadata. You cannot have more than one program with the same `name` and `program_id`. The `program_id` is how you should reference your program."
]
},
{

0 comments on commit e4c8908

Please sign in to comment.