Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for qiskit 1.0 #42

Merged
merged 2 commits into from
Mar 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/how_tos/assign_parameters_using_trainable_kernel.ipynb
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured it made sense to keep the output of these cells, since they will show the versions from when the tutorial was written, so I just commented out the code blocks which will fail on qiskit 1.0. We could alternatively just nix these cells.

Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@
}
],
"source": [
"import qiskit.tools.jupyter\n",
"\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
"#import qiskit.tools.jupyter\n",
"#\n",
"#%qiskit_version_table\n",
"#%qiskit_copyright"
]
}
],
Expand Down
8 changes: 4 additions & 4 deletions docs/how_tos/create_custom_kernel_loss_function.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@
}
],
"source": [
"import qiskit.tools.jupyter\n",
"\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
"#import qiskit.tools.jupyter\n",
"#\n",
"#%qiskit_version_table\n",
"#%qiskit_copyright"
]
}
],
Expand Down
8 changes: 4 additions & 4 deletions docs/how_tos/create_custom_quantum_feature_map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@
}
],
"source": [
"import qiskit.tools.jupyter\n",
"\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
"#import qiskit.tools.jupyter\n",
"#\n",
"#%qiskit_version_table\n",
"#%qiskit_copyright"
]
}
],
Expand Down
8 changes: 4 additions & 4 deletions docs/how_tos/train_kernels_using_qiskit_feature_maps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@
}
],
"source": [
"import qiskit.tools.jupyter\n",
"\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
"#import qiskit.tools.jupyter\n",
"#\n",
"#%qiskit_version_table\n",
"#%qiskit_copyright"
]
}
],
Expand Down
11 changes: 5 additions & 6 deletions docs/tutorials/kernel_optimization_using_qkt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@
"%matplotlib inline\n",
"\n",
"# Qiskit imports\n",
"from qiskit import BasicAer\n",
"from qiskit.visualization import circuit_drawer\n",
"from qiskit.algorithms.optimizers import SPSA\n",
"from qiskit_algorithms.optimizers import SPSA\n",
"from qiskit_machine_learning.kernels import TrainableFidelityQuantumKernel\n",
"from qiskit_machine_learning.kernels.algorithms import QuantumKernelTrainer\n",
"from qiskit_machine_learning.algorithms import QSVC\n",
Expand Down Expand Up @@ -386,10 +385,10 @@
}
],
"source": [
"import qiskit.tools.jupyter\n",
"\n",
"%qiskit_version_table\n",
"%qiskit_copyright"
"#import qiskit.tools.jupyter\n",
"#\n",
"#%qiskit_version_table\n",
"#%qiskit_copyright"
]
}
],
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
certifi>=2021.10.8
matplotlib>=3.4.3
pandas>=1.3.4
qiskit-aer>=0.12.0
qiskit-terra>=0.24.0
qiskit-machine-learning>=0.5.0
qiskit>=0.46.0
qiskit-algorithms>=0.3.0
qiskit-machine-learning>=0.7.0
ipywidgets>=7.7.1