Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "There is no loop in a quantum circuit, but we can have a classical loop that appends a quantum sub-circuit. In Qiskit we use the QuantumRegister
class to create a register of qubits and the QuantumCircuit
class to create a quantum circuit."
A block of code is set as follows:
q = QuantumRegister(2) qc = QuantumCircuit(q) qc.h(q[0]) qc.cx(q[0], q[1]) qc.draw(output='mpl')
Any command-line input or output is written as follows:
Mo: 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d¹⁰ 4p⁶ 5s² 4d⁴