If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: quantumcomputingcourses.com/tutorials/quantum-gates-explained - Quantum Gates: Hadamard, Pauli.

site address: quantumcomputingcourses.com/tutorials/quantum-gates-explained redirected to: quantumcomputingcourses.com/tutorials/quantum-gates-explained

site title: Quantum Gates: Hadamard, Pauli, CNOT and Toffoli

Our opinion (on Monday 28 September 2026 0:54:32 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:
description=What each quantum gate actually does to a qubit state, with circuit diagrams and matrix forms for Hadamard, Pauli-X/Y/Z, CNOT, Toffoli, and the…;
author=;

Headings (most frequently used words):

gate, the, gates, and, cnot, controlled, identity, clifford, to, quantum, toffoli, is, phase, cz, hadamard, pauli, with, not, are, fidelity, circuit, qubits, decomposition, in, native, go, global, of, diagrams, what, ccnot, swap, rotation, rx, ry, rz, sets, universality, how, physically, implemented, error, rates, iswap, proofs, multi, qubit, group, ancilla, noise, practice, parameterized, variational, algorithms, transpilation, common, mistakes, avoid, where, next, try, it, yourself, builder, related, tutorials, get, one, email, week, its, own, inverse, creating, entanglement, pi, superconducting, ibm, google, rigetti, trapped, ions, ionq, quantinuum, speed, coherence, trade, off, comparison, across, platforms, 2024, benchmarks, relationship, hxh, hzh, xz, iy, up, decomposing, into, significance, why, special, gottesman, knill, theorem, vqe, style, ansatz, qaoa, structure, parameter, shift, rule, confusing, cx, using, degrees, instead, radians, treating, as, significant, forgetting, that, measurement, misidentifying, vs, non, ready, deeper, learn, reference, careers, about,

Text of the page (most frequently used words):
the (243), gate (142), gates (120), and (106), quantum (90), cnot (86), qubit (77), #circuit (48), are (46), rangle (46), with (44), this (41), for (40), two (38), from (36), quantumcircuit (35), clifford (34), qiskit (33), qubits (30), you (30), import (30), error (28), not (28), that (28), control (28), phase (26), print (26), target (26), text (24), hadamard (21), controlled (21), iswap (21), can (20), single (20), state (19), array (18), theta (18), hardware (17), native (17), rotation (17), toffoli (17), pauli (17), all (16), measurement (16), cdot (16), identity (15), fidelity (15), when (15), states (15), computing (14), operation (14), classical (14), otimes (14), into (14), matrix (14), superconducting (14), ibm (13), read (13), any (13), courses (12), how (12), set (12), params (12), dagger (12), pulse (12), cos (12), sin (12), use (11), time (11), numpy (11), applies (11), both (11), each (11), guide (10), one (10), where (10), variational (10), algorithms (10), noise (10), need (10), using (10), result (10), true (10), 100 (10), ion (10), your (9), algorithm (9), tutorials (9), decomposition (9), group (9), swap (9), correction (9), only (9), axis (9), allclose (9), unitary (9), about (8), bloch (8), sphere (8), min (8), bell (8), these (8), which (8), circuits (8), same (8), global (8), why (8), shift (8), layer (8), trapped (8), what (7), because (7), also (7), every (7), measure (7), apply (7), they (7), langle (7), degree (7), around (7), count (7), gamma (7), between (7), platforms (7), google (7), coupling (7), superposition (7), entanglement (6), common (6), ancilla (6), implemented (6), here (6), universal (6), non (6), operations (6), fault (6), tolerant (6), than (6), qc_right (6), qc_wrong (6), rotate (6), rotations (6), transpiled (6), draw (6), beta (6), roughly (6), its (6), conjugation (6), means (6), through (6), 1000 (6), coherence (6), pmatrix (6), symbol (6), 2026 (5), com (5), framework (5), case (5), free (5), level (5), transpilation (5), parameterized (5), practice (5), physically (5), sets (5), hello (5), world (5), has (5), full (5), optimization (5), gives (5), does (5), wrong (5), after (5), errors (5), conj (5), degrees (5), flips (5), cost (5), while (5), original (5), like (5), heron (5), parameter (5), rule (5), cost_fn (5), vqe (5), parameters (5), understanding (5), total (5), output (5), noise_model (5), computation (5), times (5), sqrt (5), basis (5), standard (5), 200 (5), typically (5), see (4), terms (4), learning (4), zeitgeist (4), donovan (4), real (4), related (4), next (4), multi (4), rates (4), more (4), first (4), have (4), end (4), other (4), probabilities (4), explore (4), above (4), simulable (4), verify (4), matters (4), theorem (4), efficiently (4), always (4), results (4), produce (4), them (4), comparison (4), but (4), rotates (4), radians (4), produces (4), abstract (4), run (4), three (4), processors (4), eagle (4), ecr (4), property (4), example (4), param_index (4), requires (4), frac (4), qaoa (4), outcomes (4), rate (4), tdg (4), maps (4), special (4), important (4), key (4), plus (4), frequency (4), some (4), unchanged (4), chips (4), implement (4), ions (4), energy (4), equivalent (4), qc2 (4), rightarrow (4), reversible (4), inverse (4), policy (3), amazon (3), team (3), careers (3), programming (3), types (3), glossary (3), studies (3), frameworks (3), written (3), writes (3), research (3), cirq (3), pennylane (3), get (3), implementing (3), beginner (3), mistakes (3), avoid (3), proofs (3), universality (3), ccnot (3), simulation (3), browse (3), built (3), choice (3), code (3), discussed (3), fundamental (3), creates (3), classically (3), non_clifford (3), based (3), gottesman (3), knill (3), expensive (3), correct (3), before (3), undo (3), cannot (3), may (3), identical (3), state1 (3), state2 (3), expectation (3), will (3), different (3), instead (3), psi (3), approximately (3), without (3), used (3), simple (3), number (3), transpile (3), compiler (3), devices (3), directly (3), below (3), their (3), gradient (3), return (3), params_minus (3), params_plus (3), def (3), partial (3), theta_k (3), provides (3), derivative (3), rzz (3), approximate (3), create (3), ansatz (3), typical (3), uses (3), ideal (3), leakage (3), depolarizing_error (3), build (3), however (3), physical (3), essential (3), known (3), operator (3), computational (3), space (3), define (3), operators (3), decomposed (3), identities (3), sequence (3), cnot_10 (3), equals (3), diag (3), several (3), rigetti (3), rather (3), then (3), shared (3), quantinuum (3), ionq (3), probability (3), 999 (3), 300 (3), microseconds (3), takes (3), tunable (3), nanoseconds (3), shape (3), r_z (3), begin (3), flip (3), interference (3), equal (3), answers (3), diagrams (3), braket (3), cookies (2), experience (2), affiliate (2), quantumcomputingcourses (2), books (2), podcasts (2), events (2), faq (2), editorial (2), jobs (2), interview (2), certifications (2), salary (2), timeline (2), reference (2), news (2), compare (2), paths (2), learn (2), who (2), industry (2), references (2), tools (2), quantumcomputing (2), email (2), worth (2), week (2), reaching (2), point (2), bernstein (2), vazirani (2), hidden (2), string (2), finder (2), inequalities (2), chsh (2), test (2), know (2), python (2), language (2), intermediate (2), guides (2), coursera (2), edx (2), udemy (2), brilliant (2), tutorial (2), put (2), down (2), since (2), out (2), there (2), hand (2), physics (2), entirely (2), action (2), shor (2), via (2), stabilizer (2), contains (2), clifford_gates (2), name (2), barrier (2), check (2), adding (2), including (2), second (2), distillation (2), magic (2), place (2), distinct (2), bit (2), values (2), depending (2), works (2), array_equal (2), direct (2), phases (2), phi (2), entangling (2), whether (2), expand (2), become (2), gate_counts (2), type (2), size (2), equivalently (2), composed (2), square (2), depends (2), processor (2), generation (2), current (2), simplest (2), specific (2), value (2), would (2), compute (2), cost_minus (2), cost_plus (2), copy (2), evaluate (2), respect (2), evaluations (2), per (2), gradients (2), numerical (2), qaoa_layer (2), mixer (2), pair (2), n_qubits (2), vqe_ansatz (2), angles (2), function (2), budget (2), making (2), approx (2), shots (2), across (2), multiple (2), noisy (2), 4925 (2), 5000 (2), counts (2), simulator (2), aersimulator (2), add_all_qubit_quantum_error (2), error_2q (2), depolarizing (2), error_1q (2), noisemodel (2), model (2), qiskit_aer (2), simulate (2), low (2), called (2), setting (2), reducing (2), most (2), decomposing (2), well (2), either (2), measured (2), complex (2), outside (2), speedup (2), particularly (2), another (2), holds (2), generates (2), nothing (2), compilers (2), simplify (2), result4 (2), kron (2), swapped (2), result3 (2), result2 (2), hzh (2), result1 (2), hxh (2), eye (2), basic (2), conjugating (2), state_01 (2), swaps (2), natural (2), those (2), resonant (2), cnot_from_cz (2), symmetry (2), makes (2), relationship (2), acts (2), phonon (2), additional (2), neighboring (2), mechanism (2), adds (2), decoherence (2), harder (2), small (2), actual (2), connectivity (2), faster (2), internal (2), process (2), laser (2), individual (2), drives (2), microwave (2), couplers (2), envelope (2), levels (2), gaussian (2), shaped (2), affects (2), angle (2), happens (2), providers (2), actually (2), possible (2), r_y (2), appears (2), logic (2), just (2), change (2), forms (2), followed (2), flipped (2), interfere (2), prerequisites (2), wave (2), accept, decline, improve, track, performance, our, cookie, privacy, disclosure, llc, associate, earn, qualifying, purchases, contact, site, talent, pool, post, job, training, questions, cheatsheets, history, docs, maintained, curated, anyone, 241, 220, 112, subscribe, address, new, taking, changed, spam, unsubscribe, anytime, introduction, openhpi, skillsbuild, paid, fundamentals, information, aug, updated, glance, page, tensorflow, accelerating, cuda, gpu, previous, continue, structured, ready, deeper, share, yes, was, helpful, quantumzeitgeist, ran, his, 2018, subject, material, forced, nobody, should, make, pop, science, waving, phd, ramp, had, usually, stopped, working, found, drop, watch, vector, update, instantly, runs, browser, signup, install, open, screen, try, yourself, builder, shows, protect, computations, study, problems, combinations, committing, memory, factoring, eigensolvers, pieces, purely, formalism, else, warning, data, sdg, running, testing, purposes, accidentally, cause, slow, dramatically, simulators, distinction, reasons, says, even, trivial, way, push, beyond, simulability, far, due, misidentifying, defined, behavior, conditional, feedforward, explicitly, conditions, subsequent, mid, collapses, undone, collapse, placed, unpredictable, backend, forgetting, correctly, identifies, dot, abs, false, fails, state3, represent, observables, compares, statevectors, often, fail, implementations, treating, significant, writing, effectively, random, 180, message, valid, producing, unexpected, vice, versa, meant, confusing, determines, looks, significantly, larger, transpiler, optimizations, adjacent, merged, redundant, cancelled, dict, breakdown, count_ops, optimization_level, basis_gates, decompose, write, must, translate, natives, root, older, falcon, exposed, exactly, eigenvalues, generator, mathematical, analogue, hamiltonian, parameter_shift_gradient, optimize, exact, approximations, appearing, problem, layers, alternate, structure, eigensolver, style, workhorses, adjusts, minimize, critical, deciding, feasible, unreliable, contamination, tells, effective, matches, expect, remainder, depolarization, spreading, get_counts, 10000, 001, realistic, imperfect, understand, impact, aer, enormously, transversally, relatively, require, resource, costs, quite, active, area, surface, primitives, therefore, along, requiring, helper, starts, participates, restored, discarded, enable, construction, simpler, paulis, member, checking, profound, alone, sufficient, advantage, starting, measurements, simulated, computer, polynomial, regardless, spreads, propagate, central, propagation, rules, involve, relations, generators, transform, generated, products, consists, map, under, precisely, yields, position, computers, breaks, together, dense, unitaries, ingredient, enables, hierarchy, significance, cases, include, form, general, sequences, sees, replace, thirds, depth, wrapping, hadamards, compared, product, reverse, intuitively, verification, confirming, arises, naturally, coupled, excitation, accumulation, origin, earlier, left, applying, factor, scheme, numerically, natively, compiled, targeting, backends, lacks, designated, symmetric, again, closely, convert, otherwise, oscillators, bus, introduces, pathways, exchange, environment, collisions, potential, source, reason, focuses, heavily, minimizing, crosstalk, forte, sycamore, platform, 2024, benchmarks, sounds, accumulates, nearly, useless, dimension, fidelities, randomized, benchmarking, robust, estimate, insensitive, preparation, hilbert, average, perfect, quantifies, close, nearest, neighbor, 500, seconds, minutes, maintain, ratio, perform, dominates, comparable, allowing, hundreds, thousands, sequential, speed, trade, off, motion, modes, chain, molmer, sorensen, light, entangles, collective, vibrational, mode, shining, focused, beam, onto, stimulated, raman, transitions, system, slower, atomic, commonly, ytterbium, 171, barium, 133, held, electromagnetic, fields, inside, vacuum, chamber, electronic, serve, rely, resonator, coupler, echoed, cross, resonance, implements, 600, newer, tens, causes, leak, population, higher, pulses, reduce, drag, removal, adiabatic, term, proportional, suppressing, third, exist, precise, electronics, send, absorbs, amplitude, duration, rabi, oscillation, calibration, tiny, containing, cooled, millikelvin, behaves, artificial, atom, separated, ghz, josephson, junction, helps, explain, others, dominant, fundamentally, ways, compile, execute, section, phasedxz, notes, collection, zyz, euler, proves, alpha, delta, r_x, matrices, fine, grained, appear, constantly, exchanges, limited, route, past, ccx, arithmetic, adders, boolean, within, features, computes, bits, reversibly, achieved, controls, having, allows, arbitrary, precision, solovay, kitaev, affect, superdense, coding, distribution, teleportation, never, entangle, perhaps, procedure, maximally, entangled, creating, truth, table, operates, give, twice, back, started, involution, own, misconception, deserves, mean, tries, simultaneously, exists, linear, combination, manipulate, amplitudes, constructively, destructively, could, claims, relies, similar, prepare, parallelism, placing, mixture, combines, effects, decompositions, ixz, leaves, patterns, serves, counterpart, involves, applied, building, blocks, such, differences, apart, recover, inputs, knowing, mathematically, represented, meaning, constraint, guarantees, preserved, sections, background, needed, variables, functions, loops, mar, series, concepts, home, search, troubleshooting, prep, universities, career, cheat, sheets, migration, pinball, ocean, tket, pyquil, grover, quera, azure, course, skip, main, content,


Text of the page (random words):
1 rangle rightarrow 1 rangle 1 1 this operation does not change the measurement probabilities directly rather it affects interference patterns matrix 1 0 0 1 circuit symbol z y gate y combines the effects of x and z with a complex phase it appears in pauli decompositions error correction and the relationship y i x z y ixz y i x z matrix 0 i i 0 the hadamard gate h the hadamard gate is a fundamental gate in quantum computing it creates superposition placing a qubit into an equal mixture of 0 0 rangle 0 and 1 1 rangle 1 0 0 1 2 equal superposition 1 0 1 2 superposition with phase matrix 1 1 1 2 1 1 circuit symbol h why it matters without hadamard or equivalent gates quantum algorithms could not explore multiple states through interference every quantum algorithm that claims quantum parallelism relies on hadamard or similar gates to prepare superposition states a common misconception deserves correction here superposition does not mean the qubit tries all answers simultaneously rather it means the qubit exists in a linear combination of basis states and gates manipulate the amplitudes of those states so that correct answers interfere constructively while wrong answers interfere destructively the h gate is its own inverse apply h twice and you get back where you started h h i h cdot h i h h i identity this property makes h an involution if you need to undo a hadamard just apply another one qiskit put qubit in superposition then measure from qiskit import quantumcircuit qc quantumcircuit 1 1 qc h 0 0 0 1 2 qc measure 0 0 will give 0 or 1 with equal probability the cnot gate controlled not the cnot or cx gate operates on two qubits a control and a target if the control qubit is 1 1 rangle 1 it flips the target qubit if the control is 0 0 rangle 0 nothing happens truth table 00 00 control 0 target unchanged 01 01 control 0 target unchanged 10 11 control 1 target flipped 11 10 control 1 target flipped circuit symbol control target creating entanglement with h cnot the sequence h followed by cnot is perhaps the most well known two gate operation in quantum computing this procedure creates a bell state which is a maximally entangled pair of qubits qiskit create bell state from qiskit import quantumcircuit qc quantumcircuit 2 2 qc h 0 hadamard on qubit 0 superposition qc cx 0 1 cnot entangle qubit 0 qubit 1 qc measure 0 1 0 1 result always 00 or 11 never 01 or 10 this two gate circuit forms the basis for quantum teleportation superdense coding and quantum key distribution phase gates s and t phase gates rotate the qubit around the z axis of the bloch sphere while they do not change measurement probabilities in the standard basis they affect interference the mechanism that gives quantum algorithms their speedup the s gate phase gate applies a 90 degree phase rotation to 1 1 rangle 1 two s gates are equivalent to one z gate s 2 z s 2 z s 2 z matrix 1 0 0 i t gate pi 8 gate this gate applies a 45 degree phase rotation the t gate and its inverse t t dagger t is essential for universal quantum computing having just h and t gates plus cnot allows us to approximate any quantum operation to arbitrary precision via the solovay kitaev theorem matrix 1 0 0 e iπ 4 qiskit from qiskit import quantumcircuit qc quantumcircuit 1 qc s 0 s gate qc t 0 t gate qc tdg 0 t dagger inverse t gate the toffoli gate ccnot the toffoli gate features two control qubits and one target the target qubit flips only when both control qubits are in the 1 1 rangle 1 state this gate acts as a reversible and gate it computes the and of the two control bits into the target because any classical circuit can be built from and and not gates and the toffoli can simulate both reversibly a not is achieved by setting both controls to 1 1 rangle 1 it is universal for classical reversible computation circuit symbol control control target the toffoli gate appears in quantum arithmetic circuits quantum adders error correction and algorithms that need to implement classical boolean logic within a quantum circuit qiskit from qiskit import quantumcircuit qc quantumcircuit 3 qc ccx 0 1 2 toffoli flip qubit 2 if qubits 0 and 1 are 1 the swap gate swap exchanges two qubit states a b b a ab rangle rightarrow ba rangle ab ba it is used in quantum circuits when qubit connectivity is limited and you need to route qubits past each other circuit symbol a swap gate can be decomposed into three cnot gates qiskit from qiskit import quantumcircuit qc quantumcircuit 2 qc swap 0 1 direct swap or equivalently qc2 quantumcircuit 2 qc2 cx 0 1 qc2 cx 1 0 qc2 cx 0 1 rotation gates rx ry rz for fine grained control you can rotate a qubit by any angle θ theta θ around any axis of the bloch sphere these appear constantly in variational quantum algorithms like vqe and qaoa import numpy as np from qiskit import quantumcircuit qc quantumcircuit 1 qc rx np pi 4 0 rotate 45 around x axis qc ry np pi 3 0 rotate 60 around y axis qc rz np pi 2 0 rotate 90 around z axis same as s gate up to global phase the rotation gate matrices are r x θ cos θ 2 i sin θ 2 i sin θ 2 cos θ 2 r_x theta begin pmatrix cos theta 2 i sin theta 2 i sin theta 2 cos theta 2 end pmatrix r x θ cos θ 2 i sin θ 2 i sin θ 2 cos θ 2 r y θ cos θ 2 sin θ 2 sin θ 2 cos θ 2 r_y theta begin pmatrix cos theta 2 sin theta 2 sin theta 2 cos theta 2 end pmatrix r y θ cos θ 2 sin θ 2 sin θ 2 cos θ 2 r z θ e i θ 2 0 0 e i θ 2 r_z theta begin pmatrix e i theta 2 0 0 e i theta 2 end pmatrix r z θ e i θ 2 0 0 e i θ 2 any single qubit unitary can be written as u e i α r z β r y γ r z δ u e i alpha r_z beta r_y gamma r_z delta u e i α r z β r y γ r z δ for some choice of angles this is the zyz euler decomposition and it proves that ry rz is a universal set for single qubit gates gate sets and universality you do not need to implement every possible gate in quantum hardware a universal gate set is a small collection of gates that can approximate any quantum operation gate set notes h t cnot standard universal set for fault tolerant qc rx ry rz cnot common for variational algorithms rz sx x ecr or cz ibm quantum s native sets ecr on eagle cz on heron phasedxz cz or sqrt iswap google s superconducting processors native gate set hardware providers have native gate sets when you compile a circuit your gates are decomposed into only the gates the hardware can actually execute we explore this process in the transpilation section below how gates are physically implemented understanding what happens at the hardware level helps explain why some gates are harder than others two dominant hardware platforms implement gates in fundamentally different ways superconducting qubits ibm google rigetti a superconducting qubit is a tiny circuit containing a josephson junction cooled to about 15 millikelvin it behaves like an artificial atom with two energy levels separated by a frequency of roughly 5 ghz to apply a gate the control electronics send a shaped microwave pulse at the qubit s resonant frequency the qubit absorbs the pulse and its state rotates on the bloch sphere the rotation angle depends on the pulse amplitude and duration a pi pulse an x gate drives a full rabi oscillation from 0 0 rangle 0 to 1 1 rangle 1 on ibm hardware a typical single qubit gate takes about 20 to 200 nanoseconds depending on the gate type and calibration the pulse envelope shape matters a simple square pulse causes the qubit to leak population into higher energy levels outside the computational space gaussian shaped pulses reduce this leakage the drag derivative removal by adiabatic gate pulse shape adds a correction term proportional to the time derivative of the gaussian envelope suppressing leakage to the third energy level this is why pulse level programming frameworks like qiskit pulse exist precise control of the pulse shape directly affects gate fidelity two qubit gates on superconducting hardware rely on coupling between neighboring qubits typically through a shared microwave resonator or a tunable coupler an echoed cross resonance ecr pulse implements a cnot equivalent operation in roughly 300 to 600 nanoseconds on ibm s eagle generation hardware ibm s newer heron chips use tunable couplers and cz gates that are several times faster google s superconducting chips also use tunable couplers implementing two qubit gates in tens of nanoseconds trapped ions ionq quantinuum in a trapped ion processor individual atomic ions commonly ytterbium 171 or barium 133 are held in place by electromagnetic fields inside a vacuum chamber two internal electronic states of each ion serve as 0 0 rangle 0 and 1 1 rangle 1 single qubit gates are implemented by shining a focused laser beam onto an individual ion the laser drives stimulated raman transitions between the two qubit states a pi pulse on a trapped ion system typically takes 5 to 20 microseconds roughly 1000 times slower than superconducting gates two qubit gates use the shared motion phonon modes of the ion chain the molmer sorensen gate or the light shift gate entangles two ions by coupling their internal states through the collective vibrational mode this process typically takes 100 to 200 microseconds the speed coherence trade off superconducting gates are about 1000 times faster than trapped ion gates however trapped ion qubits have coherence times of seconds to minutes while superconducting qubits typically maintain coherence for 100 to 300 microseconds the ratio of coherence time to gate time the number of gates you can perform before decoherence dominates is comparable between the two platforms typically allowing hundreds to low thousands of sequential gates property superconducting trapped ion single qubit gate time 20 200 ns 5 20 μs two qubit gate time 100 500 ns 100 200 μs t1 coherence time 100 300 μs 1 10 s t2 coherence time 50 200 μs 0 5 5 s connectivity nearest neighbor all to all gate fidelity and error rates no physical gate operation is perfect gate fidelity quantifies how close the actual operation is to the ideal unitary for a target unitary u u u and the actual operation v v v the average gate fidelity is f tr u v 2 d d 2 d f frac text tr u dagger v 2 d d 2 d f d 2 d tr u v 2 d where d d d is the hilbert space dimension d 2 d 2 d 2 for single qubit d 4 d 4 d 4 for two qubit in practice fidelities are measured using randomized benchmarking which provides a robust estimate that is insensitive to state preparation and measurement errors a fidelity of 99 9 means a 0 1 error rate per gate this sounds small but a circuit with 1000 gates accumulates roughly 1 0 999 1000 63 1 0 999 1000 approx 63 1 0 999 1000 63 total error probability making the output nearly useless without error correction fidelity comparison across platforms 2024 benchmarks platform single qubit fidelity two qubit fidelity ibm eagle heron superconducting 99 9 99 0 99 5 google sycamore superconducting 99 9 99 5 ionq forte trapped ion 99 97 99 5 quantinuum h2 trapped ion 99 99 99 8 99 9 why are two qubit gates harder a two qubit gate requires coupling two distinct physical oscillators or two ions through a shared phonon bus this coupling introduces additional decoherence pathways energy exchange with the environment crosstalk with neighboring qubits and frequency collisions each additional coupling mechanism adds a potential error source this is a fundamental reason why quantum circuit optimization focuses heavily on minimizing two qubit gate count the controlled z cz gate the cz gate applies a phase of 1 1 1 when both qubits are in 1 1 rangle 1 and acts as the identity otherwise cz matrix 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 that is diag 1 1 1 1 relationship to cnot cz and cnot are closely related you can convert between them using hadamard gates on the target qubit cnot i h cz i h text cnot i otimes h cdot text cz cdot i otimes h cnot i h cz i h this means apply h to the target then cz then h to the target again and you get a cnot an important property of cz that cnot lacks is symmetry there is no designated control or target qubit cz 01 cz 10 text cz _ 01 text cz _ 10 cz 01 cz 10 either qubit can be called the control this symmetry makes cz a natural choice for hardware where the coupling between qubits is symmetric google s superconducting processors ibm s heron chips rigetti s chips and several other platforms natively implement cz rather than cnot every cnot in your circuit is compiled into cz plus two hadamard gates when targeting these backends verify the cz to cnot identity numerically import numpy as np define the gates h np array 1 1 1 1 np sqrt 2 i np eye 2 cz np diag 1 1 1 1 cnot from cz i h cz i h ih np kron i h cnot_from_cz ih cz ih standard cnot matrix cnot np array 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 print cnot from cz equals standard cnot np allclose cnot_from_cz cnot output true the iswap gate the iswap gate is native on some superconducting platforms particularly those that use a resonant coupling scheme between qubits its matrix is iswap matrix 1 0 0 0 0 0 i 0 0 i 0 0 0 0 0 1 the iswap gate swaps 01 01 rangle 01 and 10 10 rangle 10 while applying a phase factor of i i i iswap 01 i 10 text iswap 01 rangle i 10 rangle iswap 01 i 10 iswap 10 i 01 text iswap 10 rangle i 01 rangle iswap 10 i 01 the states 00 00 rangle 00 and 11 11 rangle 11 are left unchanged physically the iswap arises naturally when two superconducting qubits with the same frequency are coupled the excitation swaps between them with a phase accumulation this natural origin is why some platforms including google s earlier processors use iswap as a native gate to build a cnot from iswap gates you need two iswap gates plus single qubit rotations import numpy as np iswap matrix iswap np array 1 0 0 0 0 0 1 j 0 0 1 j 0 0 0 0 0 1 verify action on 01 state_01 np array 0 1 0 0 result iswap state_01 print 01 after iswap result output 0 0 j 0 0 j 0 1 j 0 0 j this is i 10 confirming the swap with phase i circuit identity proofs understanding circuit identities is essential for both hand optimization and understanding how compilers simplify quantum circuits here are several important identities with numerical verification identity 1 hxh z conjugating x by hadamard gates produces z intuitively h rotates the bloch sphere so that the x axis maps to the z axis identity 2 hzh x the reverse also holds conjugating z by hadamard gives x identity 3 xz iy up to global phase the product of x and z gates equals i y iy iy identity 4 cnot h h cz h h wrapping cz with hadamards on both qubits also produces a cnot with swapped control and target compared to the single hadamard identity above import numpy as np define basic gates x np array 0 1 1 0 y np array 0 1 j 1 j 0 z np array 1 0 0 1 h np array 1 1 1 1 np sqrt 2 i np eye 2 identity 1 h x h z result1 h x h print hxh z np allclose result1 z true identity 2 h z h x result2 h z h print hzh x np allclose result2 x true identity 3 x z iy result3 x z print xz iy np allclose result3 1 j y true identity 4 h h cz h h gives a cnot with swapped control target cz np diag 1...
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)
  • Chrome solids checkerboar...
  • Dr. Donovan author photo

Verified site has: 138 subpage(s). Do you want to verify them? Verify pages:

1-5 6-10 11-15 16-20 21-25 26-30 31-35 36-40 41-45 46-50
51-55 56-60 61-65 66-70 71-75 76-80 81-85 86-90 91-95 96-100
101-105 106-110 111-115 116-120 121-125 126-130 131-135 136-138


The site also has 1 references to external domain(s).

 quantumzeitgeist.com  Verify


Top 50 hastags from of all verified websites.

Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

Header

HTTP/1.1 301 Moved Permanently
Connection close
Content-Length 0
Server Varnish
Retry-After 0
Location htt????/quantumcomputingcourses.com/tutorials/quantum-gates-explained
Accept-Ranges bytes
Date Mon, 28 Sep 2026 00:54:33 GMT
X-Served-By cache-rtm-ehrd2290021-RTM
X-Cache HIT
X-Cache-Hits 0
X-Timer S1790556873.131519,VS0,VE0
alt-svc h3= :443 ;ma=86400,h3-29= :443 ;ma=86400,h3-27= :443 ;ma=86400
HTTP/2 200
cache-control public, max-age=0, must-revalidate
content-encoding gzip
content-type text/html; charset=utf-8
etag 49bbfe9fee963a3e6aa2ef80a431b9a38ee4f207deeceb019a074c80a2133426
last-modified Sat, 12 Sep 2026 20:05:51 GMT
strict-transport-security max-age=31556926
accept-ranges bytes
date Mon, 28 Sep 2026 00:54:33 GMT
x-served-by cache-rtm-ehrd2290027-RTM
x-cache MISS
x-cache-hits 0
x-timer S1790556873.159909,VS0,VE107
vary x-fh-requested-host, accept-encoding
alt-svc h3= :443 ;ma=86400,h3-29= :443 ;ma=86400,h3-27= :443 ;ma=86400
content-length 35710

Meta Tags

title="Quantum Gates: Hadamard, Pauli, CNOT and Toffoli"
charset="UTF-8"
name="viewport" content="width=device-width, initial-scale=1"
name="description" content="What each quantum gate actually does to a qubit state, with circuit diagrams and matrix forms for Hadamard, Pauli-X/Y/Z, CNOT, Toffoli, and the…"
property="og:type" content="article"
property="og:url" content="htt????/quantumcomputingcourses.com/tutorials/quantum-gates-explained"
property="og:title" content="Quantum Gates: Hadamard, Pauli, CNOT and Toffoli | QuantumComputingCourses.com"
property="og:description" content="What each quantum gate actually does to a qubit state, with circuit diagrams and matrix forms for Hadamard, Pauli-X/Y/Z, CNOT, Toffoli, and the…"
property="og:image" content="htt????/quantumcomputingcourses.com/images/library/80s-274-chrome-solids-checkerboard.webp"
property="og:image:width" content="1200"
property="og:image:height" content="630"
property="og:locale" content="en_US"
property="og:site_name" content="QuantumComputingCourses.com"
property="article:published_time" content="2026-03-09T00:00:00.000Z"
property="article:author" content="QuantumComputingCourses.com"
name="twitter:card" content="summary_large_image"
name="twitter:title" content="Quantum Gates: Hadamard, Pauli, CNOT and Toffoli | QuantumComputingCourses.com"
name="twitter:description" content="What each quantum gate actually does to a qubit state, with circuit diagrams and matrix forms for Hadamard, Pauli-X/Y/Z, CNOT, Toffoli, and the…"
name="twitter:image" content="htt????/quantumcomputingcourses.com/images/library/80s-274-chrome-solids-checkerboard.webp"
name="theme-color" content="#fffaf3"
name="color-scheme" content="light dark"
name="darkreader-lock"
name="author" content="QuantumComputingCourses.com"
name="google-site-verification" content="AUHneuZfjppbdqvvRkpwjhiFC2kqmW6SfDDJWqAY_rs"

Load Info

page size35710
load time (s)0.193183
redirect count1
speed download185025
server IP 199.36.158.100
* all occurrences of the string "http://" have been changed to "htt???/"