OSDN Git Service

removes destructor of QCalcUnit
[qcad/qcad.git] / htdocs / qcadhelp.rd
1 =begin head\r
2 <title>Qcad Help File</title>\r
3 <META http-equiv="Content-Style-Type" content="text/css">\r
4 <STYLE TYPE="text/css">\r
5 <!--\r
6 body {line-height: 120%;  background-color:#ffffd2; color: black}\r
7 A:link { text-decoration:none; font-weight:bold; color:#161FFA }\r
8 A:visited { text-decoration:none; font-weight:bold; color:#06AAFF }\r
9 A:active { text-decoration:none; font-weight:bold; color:#8470FF }\r
10 A:hover { font-weight:bold; color:#FF707F }\r
11 H1 {padding-top:10px;text-align: center}\r
12 H2 {padding-top:10px;border-top: black 1px solid;}\r
13 code {padding:10px; display:block;white-space:pre;border: solid 1px #AAAAAA;}\r
14 dt{font-weight:bold;}\r
15 div.footer{text-align:center;color:#800000;}\r
16 -->\r
17 </STYLE>\r
18 =end\r
19 \r
20 =begin\r
21 =QCAD - HelpFile\r
22 ((:<div align=center><img src="img/qcadico48.png"></div>:))\r
23 \r
24 QCAD is a windows-based GUI environment of Quantum Computing Simulation, it will help you to study quantum computations. \r
25 \r
26 This software has following functions.\r
27 \r
28 (1) Graphical Designing Environment for Quantum Circuits.\r
29 (2) Quantum Simulator\r
30 (3) Exportable EPS and Bitmap file of circuits designed by QCAD.\r
31 \r
32 ==Table of contents\r
33 \r
34 * About:\r
35   * ((<Specifications>))\r
36   * ((<Installation & Uninstallation>))\r
37 * Design Circuits:\r
38   * ((<Edit Window>))\r
39   * ((<Circuit Panel>))\r
40   * ((<Available Quantum Gates>))\r
41   * ((<Save & Load>))\r
42   * ((<Export Other Format>))\r
43 * Menu References:\r
44   * ((<Menu References>))\r
45 * Simulator:\r
46   * ((<Simulate Circuit>))\r
47   * ((<Measurement>))\r
48   * ((<Save Results>))\r
49 *Other Information:\r
50   * ((<Known Problems>))\r
51   * ((<About Developers>))\r
52   * ((<License>))\r
53   * ((<Acknowledgements>))\r
54   * ((<History>))\r
55 \r
56 ==Specifications\r
57 \r
58 ===Functions\r
59 \r
60 :GUI Environment to design quantum circuits\r
61   QCAD enables you to design quantum circuits easily with full GUI (graphical user interface) environment. \r
62 :Exportable EPS and BMP\r
63   QCAD can export the designed circuits as Encapsulated PostScript (EPS) in order to include in LaTeX files. \r
64 :Built-in Simulator\r
65   QCAD can simulate the designed circuit and show results (states of qubits).\r
66 \r
67 See ((<Available Quantum Gates>)). The matrices of the gates are also shown there.\r
68 \r
69 ===System Requirements\r
70 \r
71 :Operating System\r
72   Windows 2000 or higher. QCAD does not work on Linux or Mac OS.\r
73 \r
74 \r
75 ==Installation & Uninstallation\r
76 \r
77 ===Installation\r
78 (1)  Unpack the archive file to any folder (e.g. c:\util\qcad).\r
79 (2)  Double click the icon of QCAD ((<"IMG:img/qcad.png">)) to execute it.\r
80 \r
81 ===Uninstallation\r
82 \r
83 Remove installed folder and its contents.\r
84 \r
85 NOTE:  QCAD will never touch any registries of your system.\r
86 \r
87 ==Edit Window\r
88 \r
89    When QCAD is executed, you can see "Edit Window". You can put gates on it.\r
90 \r
91 :Bitbox\r
92   The left end of it, there are "Bitbox". You can modify the initial states of qubits with it.\r
93 :Multi Select\r
94   If you want to select many gates at the same time, click gates with the control key. \r
95 \r
96 \r
97 ==Circuit Panel\r
98 \r
99 \r
100   Circuit Panel is a circuit selector. \r
101 \r
102 You can open it by choosing "Circuit Panel" by "View" menu.\r
103 \r
104 \r
105   Click a button which shows a circuit that you want to put.\r
106 \r
107 Then the circuit is selected.\r
108 \r
109 Next, Click the edit window, then the circuit is put there.\r
110 \r
111 \r
112   If the circuit requires parameter, the parameter window will open.\r
113 \r
114 Set all parameters like as control bits, and then push OK. \r
115 \r
116 \r
117 \r
118 \r
119 \r
120 \r
121 ==Available Quantum Gates\r
122 \r
123 \r
124 * ((<"IMG:img/walsh.png">)) Walsh Hadamard Gate\r
125 * ((<"IMG:img/not.png">)) Not Gate\r
126 * ((<"IMG:img/cnot.png">)) Controlled Not Gate\r
127 * ((<"IMG:img/ccnot.png">)) Toffoli (Controlled Controlled Not) Gate\r
128 * ((<"IMG:img/rot.png">)) Rotation Gate\r
129 * ((<"IMG:img/crot.png">)) Controlled Rotation Gate\r
130 * ((<"IMG:img/x.png">)) Pauli X Gate\r
131 * ((<"IMG:img/y.png">)) Pauli Y Gate\r
132 * ((<"IMG:img/z.png">)) Pauli Z Gate\r
133 * ((<"IMG:img/swap.png">)) Swap Gate\r
134 * ((<"IMG:img/mesure2.png">)) Measurement Gate\r
135 \r
136 === Bitbox\r
137 \r
138 \r
139    Gate "Bitbox" are special gates. They are irremovable. You can set the initial value of qubits.\r
140 \r
141 If you want to set initial value of qubit as |0...01>, change state of Bitbox at Q1 to "1",\r
142 \r
143 and "0" for other Bitbox.\r
144 \r
145 \r
146    If you set Enabled to false, the line become disabled. This function is for exporting an EPS file. You can get EPS file with skipping this line.\r
147 \r
148 \r
149 === Matrices for gates\r
150 \r
151 \r
152 ((<"IMG:img/qgates.png">))\r
153 \r
154 ==Save & Load\r
155 \r
156 \r
157    You can save and load the circuit data of QCAD by "Save" and  "Load" options on "File" menu. A default extension is "qcd".\r
158 \r
159 ==Export Other Format\r
160 \r
161 === Export EPS\r
162 \r
163 \r
164   You can export a designed circuit as EPS(Encapsulated PostScript) file which is suitable for LaTeX or other types of document.\r
165 \r
166 After designing a circuit, choose "Export EPS file".\r
167 \r
168 \r
169 === Export Bitmap File\r
170 \r
171 \r
172   If you need a bitmap file of a designed circuit, you can export a bitmap file which is what you see at the edit window. After designing a circuit, choose "Export as Bitmap file".\r
173 \r
174 ==Menu References\r
175 \r
176 \r
177 The Menus and their short cuts allow quick access to many operations. The Following menus are available.\r
178 \r
179 \r
180 ((<File Menu>))\r
181 \r
182 ((<View Menu>))\r
183 \r
184 ((<Edit Menu>))\r
185 \r
186 ((<Calc Menu>))\r
187 \r
188 ((<Help Menu>))\r
189 \r
190 \r
191 \r
192 \r
193 ==File Menu\r
194 \r
195 \r
196 The File menu allows access to the operations of saving and loading data, exporting as other formats and quitting QCAD.\r
197 \r
198 \r
199 === New\r
200 ((<"IMG:img/00new.png">))\r
201 \r
202 Select the "New" option to obtain a new circuit. QCAD will ask you the size of it. If there is an unsaved circuits, the confirm dialog opens, asking for a file name for the designed circuit.\r
203 \r
204 \r
205 === Open\r
206 ((<"IMG:img/01open.png">))\r
207 \r
208 Select the "Open" option to open the designed QCAD file. If there is an unsaved circuits, the confirm dialog opens, asking for a file name for the designed circuit.\r
209 \r
210 \r
211 === Save\r
212 ((<"IMG:img/02save.png">))\r
213 \r
214 Select the "Save" option to save the designed circuit to the file.\r
215 \r
216 If you have not set the name of file, Save Dialog appears and requires the filename.\r
217 \r
218 \r
219 === Save As\r
220 \r
221 Select the "Save As" option to save the designed circuit to the file with desired filename. Save Dialog appears and requires the filename.\r
222 \r
223 \r
224 === Export as EPS file\r
225 ((<"IMG:img/08saveasps.png">))\r
226 \r
227 Select the "Export as EPS file" option to export the designed circuit as the EPS(Encapsulated PostScript) file format. This format is suitable for LaTeX or other document to include.\r
228 \r
229 === Export as Bitmap file\r
230 ((<"IMG:img/07saveasbmp.png">))\r
231 \r
232 Select the "Export as Bitmap file" option to export the designed circuit as the Bitmap file format. The current format of the bitmap is the type of 8bit(including 256 colors).\r
233 \r
234 === Print\r
235 \r
236 Print the current circuit.\r
237 \r
238 === Print Setup\r
239 \r
240 Setup a printer.\r
241 \r
242 === Exit\r
243 \r
244 Select the "Exit" option to quit designing and close the QCAD. If there is an unsaved circuits, the confirm dialog opens, asking for a file name for the designed circuit.\r
245 \r
246 ==View Menu\r
247 \r
248 The View menu allows access to Circuit Panel.\r
249 \r
250 === Circuit Panel\r
251 \r
252 Select the Circuit Panel option to open the circuit panel. See <a href="#HLP000011">Circuit Panel</a> section for more information.\r
253 \r
254 ==Edit Menu\r
255 \r
256 \r
257 Edit menu allows to the operations which modify the designing circuit.\r
258 \r
259 \r
260 === Undo\r
261 ((<"IMG:img/03undo.png">))\r
262 \r
263 Select the Undo option to undo the previous operations. You can undo all operations and the number of undo is unlimited (it depends on the size of memory of your system).\r
264 \r
265 === Remove\r
266 ((<"IMG:img/04remove.png">))\r
267 \r
268 Select the Remove option to remove the selected gates.\r
269 \r
270 ==Calc Menu\r
271 \r
272 Edit menu allows to operations to the simulator of the QCAD.\r
273 \r
274 See ((<Simulate Circuit>)) section for details.\r
275 \r
276 ==Help Menu\r
277 \r
278 The Help menu allows access to the help or version information of the QCAD.\r
279 \r
280 === Help\r
281 ((<"IMG:img/05help.png">))\r
282 \r
283 Select the Help option to open the contents of QCAD help file.\r
284 \r
285 === Version\r
286 \r
287 Select the Version option to show the version information of the QCAD.\r
288 \r
289 ==Simulate Circuit\r
290 ((<"IMG:img/06run.png">))\r
291 \r
292    You can simulate a designed circuit on QCAD.\r
293 \r
294 Try "Calc" of "Calc" menu, or hit "F5" key, and QCAD simulate your circuits and show results.\r
295 \r
296 WARNING:\r
297 \r
298 The calculation of the quantum circuits requires huge memory. When the circuit has 32 lines, for example, it will use 64GB. If you try to calculate large circuits, your machine might be in trouble.\r
299 \r
300 ==Measurement\r
301 \r
302   From Ver. 1.92, measurement gates has been available. If a circuit contains measurement gates, the "Measurement View" becomes available.\r
303 \r
304 ((<"IMG:img/measurement3.png">)) \r
305 \r
306 For example, the above circuits involves the following measured result.\r
307 \r
308 ((<"IMG:img/measurement4.png">)) \r
309 \r
310 The result contains indeces, qubits' status, and the probability that the status to be measured, respectively.\r
311 \r
312 === NOTE:\r
313 \r
314 This measurememt DOES NOT achieve real measurement.\r
315 The measurement gates on QCAD do only set "measurement flags". After the calculation, the measurement is performed.\r
316 \r
317 For example, the following two circuits are equivalent on QCAD.\r
318 \r
319 ((<"IMG:img/measurement1.png">))\r
320 ((<"IMG:img/measurement2.png">))\r
321 \r
322 ==Save Results\r
323 \r
324 :Save Results\r
325   You can save the simulated results as a text file (Comma Separated Values).\r
326 \r
327 The format of the exported file is as follows,\r
328 \r
329  #QCAD Result file\r
330  #ex) Index), (Qubits conf.), (Abs. value), (Re. part), (Im. part)\r
331  #ex)      0, |00000>       , 1.000       , 0.4455    , 0.23  \r
332  0,|0000000>, 1.000000,1.000000,0.000000\r
333  1,|0000001>, 0.000000,0.000000,0.000000\r
334  .....\r
335  127,|1111111>, 0.000000,0.000000,0.000000\r
336 \r
337 :Save Measured Results\r
338   If you want to save the measured results, select the "Save Results" menu on the "File" menu after choosing "Measurement view". The format of the results file is equivalent to which showed on Measurement view.\r
339 \r
340 ==Known Problems\r
341 \r
342 QCAD has some problems as following.\r
343 \r
344 (1) Step-by-step execution is not available yet.\r
345 \r
346 ==About Developers\r
347 \r
348 * Hiroshi Watanabe (Representative)\r
349 * Masaru Suzuki (Programmer)\r
350 * Junnosuke Yamazaki (Programmer) \r
351 \r
352 ==License\r
353 \r
354 Copyright (C) 2002 - 2011 QCAD Developers Team\r
355 \r
356 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\r
357 \r
358 (1) In any scientific publication based wholly or in part on the Software, the use of the Software must be acknowledged.\r
359 (2) Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\r
360 (3) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. \r
361 \r
362  THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED\r
363  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\r
364  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL  OR\r
365  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
366  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\r
367  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\r
368  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
369  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\r
370  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
371 \r
372 ==Acknowledgements\r
373 \r
374 This work is supported by a grant under the youth section of Exploratory Software\r
375 Project FY2002 (IPA, Japan). This software was developed at the University of Tokyo\r
376 and Nagoya University.\r
377 \r
378 ==History\r
379 \r
380 * 2011-8-3 Ver 2.00\r
381   * Change format of helpfile from Windows help (*.hlp) to HTML help (*.chm).\r
382   * Change Icons.\r
383   * Change licence.\r
384   * Documentations are revised.\r
385 * 2009-2-9 Ver 1.96\r
386   * Bugs that Rotation and Controlled Rotation gates lost the factional part of phase were fixed.\r
387 * 2008-10-25 Ver 1.95\r
388   * Rotation and Controlled Rotation gates become to accept non-integer value.\r
389   * GUI for setting phase is implemented.\r
390 * 2008-10-02 Ver 1.94\r
391   * Bugs in Controlled Rotation Gate are fixed.\r
392   * Visualization on Result Window is optimized.\r
393 * 2007-5-25 Ver 1.93\r
394   * Bugs in Undo are fixed.\r
395   * Bugs in the form for modifying circuits are fixed.\r
396 * 2005-10-18 Ver 1.92\r
397   * Measurement gates become available.\r
398   * Bugs on shoing the help file is fixed.\r
399 * 2005-10-06 Ver 1.91\r
400   * A problem using resource of Windows too much was fixed.\r
401 * 2005-07-28 Ver 1.90\r
402   *A new function "Show Only NonZero" was implemented.\r
403 * 2005-05-01 Ver 1.89\r
404   *Bugs on loading file was fixed.\r
405 * 2005-04-26 Ver 1.88\r
406   * Bugs that Pauli Gates were ignored was fixed.\r
407 * 2005-04-26 Ver 1.87\r
408   * Definitions of Rotation Gates in "Quantum Computation and Quantum Information" by M. A. Nielsen and I. L. Chuang are taken.\r
409 * 2005-04-21 Ver 1.86\r
410   * Definitions of Z-Rotation Gates are revised.\r
411 * 2005-04-18 Ver 1.85\r
412   * Bugs on a Z-Rotation a Controlled Z-Rotation Gates were fixed.\r
413 * 2005-03-17 Ver 1.84\r
414   * Bugs on Rotation Gates were fixed.\r
415   * Add Z Rotation Gate.\r
416 * 2005-03-14 Ver 1.83\r
417   * Bugs on Pauli-Gates were fixed.\r
418 * 2004-10-27 Ver 1.82\r
419   * Some messages were revised.\r
420 * 2004-09-15 Ver 1.81\r
421   * Add scroll bar at the Result-View.\r
422   * Add Save function on the Result-View.\r
423   * Bugs on calculations were fixed.\r
424 * 2003-05-08 Ver 1.80\r
425   * All Gates are availavle.\r
426   * New views are now availavle.\r
427   * Bugs of View were fixed.\r
428 * 2003-01-27 Ver 1.70\r
429   * Bug of computation of "Controlled Rotate" is fixed.\r
430   * Add Not Gate.\r
431 * 2003-01-22 Ver 1.60\r
432   * Add "Undo" to Menu.\r
433 * 2002-12-31 Ver 1.50beta\r
434   * Add Simulator on QCAD.\r
435 * 2002-06-24 Ver 1.00\r
436   * Release First version.\r
437 \r
438 ((:<hr><div class=footer>QCAD<BR>Copyright &copy; 2002 - 2011 QCAD Developers Team. All rights reserved.<BR><a href="http://qcad.sourceforge.jp/">http://qcad.sourceforge.jp/</a></div>:))\r
439 =end\r