Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
PositroniumJS committed Dec 29, 2024
1 parent 8f1d879 commit 76a5f57
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 68 deletions.
64 changes: 32 additions & 32 deletions docs/tut/1-Overview/1.2-Quick-start.ipynb

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/tut/4-Analysis/4.02-Eigenmode-and-EPR.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions qiskit_metal/_gui/component_widget_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def retranslateUi(self, ComponentWidget):
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'.AppleSystemUIFont\'; font-size:13pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Arial\'; font-size:14pt;\">Help about a component will be displayed here when you select a compoent in the design components dialog. </span></p></body></html>",
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Arial\'; font-size:14pt;\">Help about a component will be displayed here when you select a component in the design components dialog. </span></p></body></html>",
None, -1))
ComponentWidget.setTabText(
ComponentWidget.indexOf(self.tabHelp),
Expand All @@ -110,7 +110,7 @@ def retranslateUi(self, ComponentWidget):
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'.AppleSystemUIFont\'; font-size:13pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Arial\'; font-size:14pt;\">The source code of a QComponent class will be displayed here when you select a compoent in the design components dialog. </span></p></body></html>",
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Arial\'; font-size:14pt;\">The source code of a QComponent class will be displayed here when you select a component in the design components dialog. </span></p></body></html>",
None, -1))
self.lineSourcePath.setToolTip(
QtWidgets.QApplication.translate("ComponentWidget",
Expand Down
4 changes: 2 additions & 2 deletions qiskit_metal/_gui/component_widget_ui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'.AppleSystemUIFont'; font-size:13pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Arial'; font-size:14pt;&quot;&gt;Help about a component will be displayed here when you select a compoent in the design components dialog. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Arial'; font-size:14pt;&quot;&gt;Help about a component will be displayed here when you select a component in the design components dialog. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -154,7 +154,7 @@ p, li { white-space: pre-wrap; }
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'.AppleSystemUIFont'; font-size:13pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Arial'; font-size:14pt;&quot;&gt;The source code of a QComponent class will be displayed here when you select a compoent in the design components dialog. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Arial'; font-size:14pt;&quot;&gt;The source code of a QComponent class will be displayed here when you select a component in the design components dialog. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion qiskit_metal/_gui/styles/metal_dark/TODO.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Remmebr to modify the highlight color to red fot the QToolbar hover
Remember to modify the highlight color to red for the QToolbar hover

QToolBar QToolButton:hover {
border: 1px solid #e74d10;
Expand Down
38 changes: 19 additions & 19 deletions tutorials/1 Overview/1.2 Quick start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"\n",
"##### Interactivly view, edit, and simulate QDesign: Metal GUI\n",
"\n",
"To launch the qiskit metal GUI,use the method `MetalGUI`.\n",
"To launch the qiskit metal GUI, use the method `MetalGUI`.\n",
"```python \n",
"gui = MetalGUI(design)\n",
"```\n"
Expand Down Expand Up @@ -100,7 +100,7 @@
"source": [
"## My First Quantum Component (QComponent)\n",
"### A transmon qubit\n",
"We can create a ready-made and optimized transmon qubit form the QLibrary of components.\n",
"We can create a ready-made and optimized transmon qubit from the QLibrary of components.\n",
"Qubit qcomponents are stored in the library `qiskit_metal.qlibrary.qubits`. The file that contains the transmon pocket is called `transmon_pocket`,\n",
"and the `QComponent` class inside it is `TransmonPocket`.\n",
"\n",
Expand Down Expand Up @@ -161,9 +161,9 @@
"metadata": {},
"source": [
"#### What are the default options?\n",
"The QComponent comes with some default options. The options are used in the `make` function of the qcomponent to create the QGeometry you see in the plot above. \n",
"The QComponent comes with some default options. The options are used in the `make` function of the QComponent to create the QGeometry you see in the plot above. \n",
"* Options are parsed by Qiskit Metal. \n",
"* You can change them from the gui or the script api. "
"* You can change them from the GUI or the script API. "
]
},
{
Expand All @@ -179,8 +179,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You can use the gui to create, edit, plot, modify, quantum components.\n",
"Equivalently, you can also do everything form the python API. \n",
"You can use the GUI to create, edit, plot, modify, quantum components.\n",
"Equivalently, you can also do everything from the python API. \n",
"The GUI is just calling the API for you."
]
},
Expand Down Expand Up @@ -216,7 +216,7 @@
"metadata": {},
"source": [
"### Where are the QComponents stored?\n",
"They are stored in `design.components`. It can be accessd as a dictionary (`design.components['Q1']`) or object (`design.components.Q1`)."
"They are stored in `design.components`. It can be accessed as a dictionary (`design.components['Q1']`) or object (`design.components.Q1`)."
]
},
{
Expand All @@ -242,7 +242,7 @@
"metadata": {},
"source": [
"A QComponent is created with default options.\n",
"To find out what these are use `QComponentClass.get_template_options(design)`"
"To find out what these are, use `QComponentClass.get_template_options(design)`"
]
},
{
Expand All @@ -267,7 +267,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now lets change the default options we will use to create the transmon"
"Now let us change the default options we will use to create the transmon"
]
},
{
Expand Down Expand Up @@ -314,7 +314,7 @@
"outputs": [],
"source": [
"print('Design default units for length: ', design.get_units())\n",
"print('\\nExample 250 micron parsed to design units:', design.parse_value('0.250 um'), design.get_units())\n",
"print('\\nExample 250 micron parsed to design units:', design.parse_value('250 um'), design.get_units())\n",
"\n",
"dictionary = {'key_in_cm': '1.2 cm', 'key_in_microns': '50 um'}\n",
"print('\\nExample parse dict:', design.parse_value(dictionary))\n",
Expand Down Expand Up @@ -427,11 +427,11 @@
"source": [
"### QPins: The dynamic way to connect qcomponents \n",
"\n",
"The component designer can define pins. Pins can be used to link components together. For examaple, two transmon can each have a pin. The two pins can be connectoed by CPWs, as we will show below. \n",
"The component designer can define pins. Pins can be used to link components together. For example, two transmons can each have a pin. The two pins can be connected by CPWs, as we will show below. \n",
"\n",
"First, let us add pins to the transmon. \n",
"We will add 4 pins called `a`, `b`, `c`, and `d`. \n",
"Each pin will be at a differnet location (corner of the transmon), defined by the options `loc_W` and `loc_H`."
"Each pin will be at a different location (corner of the transmon), defined by the options `loc_W` and `loc_H`."
]
},
{
Expand All @@ -447,7 +447,7 @@
"options = dict(\n",
" pad_width = '425 um', \n",
" pocket_height = '650um',\n",
" connection_pads=dict( # pin connecotrs\n",
" connection_pads = dict( # pin connectors\n",
" a = dict(loc_W=+1,loc_H=+1), \n",
" b = dict(loc_W=-1,loc_H=+1, pad_height='30um'),\n",
" c = dict(loc_W=+1,loc_H=-1, pad_width='200um'),\n",
Expand Down Expand Up @@ -495,7 +495,7 @@
"metadata": {},
"source": [
"### How do I edit the component source code and see changes immidietly? \n",
"If you have selected a QComponent, you can call the button that says edit source in the gui. \n",
"If you have selected a QComponent, you can call the button that says edit source in the GUI. \n",
"Once selected, you could also call the same function from the code."
]
},
Expand Down Expand Up @@ -536,8 +536,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's now create a a whole chip. In the following, you will pass options to create 4 transmons qubits in a ring.\n",
"First let us clear all qcomponents in the design. "
"Let's now create a a whole chip. In the following, you will pass options to create 4 transmon qubits in a ring.\n",
"First let us clear all QComponents in the design. "
]
},
{
Expand All @@ -563,7 +563,7 @@
"\n",
"## Custom options for all the transmons\n",
"options = dict(\n",
" # Some options we want to modify from the deafults\n",
" # Some options we want to modify from the defaults\n",
" # (see below for defaults)\n",
" pad_width = '425 um', \n",
" pocket_height = '650um',\n",
Expand Down Expand Up @@ -633,7 +633,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We can now modify the options and connect all four qubits. Since this is repetative, you can define a function to wrap up the repetatvie steps. Here we will call this `connect`. This function creates a `RouteMeander` QComponent class."
"We can now modify the options and connect all four qubits. Since this is repetitive, you can define a function to wrap up the repetitive steps. Here we will call this `connect`. This function creates a `RouteMeander` QComponent class."
]
},
{
Expand Down Expand Up @@ -796,7 +796,7 @@
"q3.options.pad_width = 'pad_width'\n",
"q4.options.pad_width = 'pad_width'\n",
"\n",
"# Rebuild all compoinent and refresh the gui \n",
"# Rebuild all components and refresh the gui \n",
"gui.rebuild()\n",
"gui.autoscale()"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@
"For the resonator analysis we will use the default setup. Youn can feel free to edit it the same way we did in section 1.\n",
"\n",
"#### Execute simulation and verify convergence and EM field\n",
"Analyze the readout in isolation. Select the readout and terminate it with an open on both ends. Note that we are selecting for this analysis both the `readout` component and the `open_to_ground` component. The `open_to_ground` compoent might feel redundant because we are specifying in that open in the `open_terminations`, and the end converging reult is indeed the same. however the `open_to_ground` appears to help the system to ceonverge faster, so we keep it in there."
"Analyze the readout in isolation. Select the readout and terminate it with an open on both ends. Note that we are selecting for this analysis both the `readout` component and the `open_to_ground` component. The `open_to_ground` component might feel redundant because we are specifying in that open in the `open_terminations`, and the end converging reult is indeed the same. however the `open_to_ground` appears to help the system to ceonverge faster, so we keep it in there."
]
},
{
Expand Down Expand Up @@ -713,7 +713,7 @@
"# 4. Analyze a coupled 2-transmon system\n",
"### Create the design\n",
"\n",
"This is a different system than the one analyzed in sections 1,2,3. Therefore, let's start by deleting the design currntly in the Qiskit Metal GUI (if any)."
"This is a different system than the one analyzed in sections 1,2,3. Therefore, let's start by deleting the design currently in the Qiskit Metal GUI (if any)."
]
},
{
Expand Down

0 comments on commit 76a5f57

Please sign in to comment.