Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Simulating a Sequential Pauli-Y–Hadamard–Pauli-Z Quantum Circuit

P. K. Majumdar

Published Aug 19, 2026• 0 citations
Publisher

Abstract

This notebook demonstrates how NumPy can be used to construct the unified matrix operator for a single-qubit circuit in which the Pauli-Y, Hadamard and Pauli-Z gates are applied sequentially. It explains the relationship between chronological circuit order and right-to-left matrix multiplication, computes the composite operator as Z @ H @ Y, prints the resulting 2 × 2 complex matrix and verifies numerically that the composite transformation remains unitary.

DOI
10.5281/zenodo.22011366

Related papers

Simulating Sequential Single-Qubit State Evolution with NumPy

P. K. Majumdar

This educational Jupyter notebook demonstrates how to simulate sequential quantum-gate operations using NumPy. Beginning with the computational-basis state |0>, it applies the Hadamard and Pauli-X operators in chronological circuit order while explaining the corresponding right-to-left order of matrix multiplication. The notebook uses NumPy's matrix-multiplication operator to compute intermediate and final state vectors, verifies the equivalence of composite-operator evaluation, and confirms that unitary evolution preserves state normalisation. It is intended as a transparent, reproducible introduction to matrix-based single-qubit simulation for students, educators and readers beginning their study of quantum computing.

•Aug 14, 2026•0 citations

Diagonalise Hermitian operators and change quantum basis with NumPy

P. K. Majumdar

This program uses NumPy’s Hermitian eigensolver to diagonalise the Pauli-(X) operator, construct its unitary eigenvector matrix and verify the similarity transformation numerically. It also distinguishes NumPy’s automatically ordered eigenbasis from the conventional Hadamard basis, demonstrating that (H†XH=Z).

•Aug 30, 2026•0 citations

Unitaria: Quantum Linear Algebra via Block Encodings

Matthias Deiml, Oliver Hüttenhofer, Ram Mosco +2 more

We introduce Unitaria, a Python library that brings the simplicity of classical linear algebra toolkits such as NumPy and SciPy to the implementation of quantum algorithms based on block encodings, a general-purpose abstraction in which a matrix is embedded as a sub-block of a larger unitary operator. Their implementation has so far required deep knowledge of low-level circuit construction, which Unitaria aims to eliminate. The library provides a composable, array-like interface through which users can define block encodings of matrices and vectors, combine them through standard operations such as addition, multiplication, tensor products, and the Quantum Singular Value Transformation, and extract the resulting quantum circuits automatically. A key feature is a matrix-arithmetic evaluation path in which every operation can be computed directly on encoded vectors and matrices without dependence on ancilla qubits or circuit simulation. This enables correctness verification and classical simulation that scale well beyond what state vector simulation permits and also allows resource estimation, including gate counts, qubit counts, and normalization constants, without executing any circuit. Together, these capabilities allow researchers to develop, verify, and analyze quantum linear algebra algorithms today, ahead of the availability of error-corrected hardware. Unitaria is open source and available at https://github.com/tequilahub/unitaria.

quant-pharXiv:2605.10768•May 12, 2026•1 citation

Reconstructing the Hadamard Gate from Euler-Angle Parameters

P. K. Majumdar

This notebook implements the general single-qubit unitary matrix U(θ, φ, λ) and evaluates it for θ = π/2, φ = 0 and λ = π. It compares the generated array with the exact Hadamard matrix, uses matrix multiplication to verify their equivalence, and independently confirms that the resulting operator satisfies the unitarity condition U†U = I. The exercise demonstrates how familiar quantum gates can be recovered as particular cases of a general parameterised single-qubit transformation.

•Aug 19, 2026•0 citations

Theory and Methodology of Information Security: Quantum Gates and Pauli Matrices

Mikhail Pavlov

Abstract In the field of quantum computing, the study of single-qubit quantum gates is fundamental to constructing quantum circuits and algorithms. Single-qubit gates, such as the X, Y, and Z gates, enable precise manipulation of qubit states, which can be visualized on the Bloch sphere. The use of matrix representations, including Pauli matrices, provides a rigorous mathematical framework for analyzing gate operations and their effects within quantum circuits. This work also explores the application of the Quantum Fourier Transform (QFT) and introduces the Hadamard test subroutine as a practical method for evaluating quantum states. The presented algorithms were successfully implemented on a 5-qubit IBM quantum computer, demonstrating both the theoretical foundations and practical significance of quantum gates and Pauli matrices in modern quantum computation and their potential role in secure information processing.

•Mar 4, 2026•0 citations

Parallel Hadamard Test

Soichiro Imamura, Synge Todo

The Hadamard test is a fundamental building block widely used in many quantum computing algorithms. It estimates the real or imaginary part of $\langle ψ\vert U \vert ψ\rangle$, where $\vert ψ\rangle$ is a quantum state and $U$ is a unitary operator. In many algorithms, however, many such quantities must be estimated, leading to a large number of distinct circuit types, long computational times, and high financial costs. In this work, we propose the parallel Hadamard test, which combines multiple Hadamard tests into a single circuit type. We demonstrate how the parallel Hadamard test applies to three structural classes of workloads: arbitrary sets of unitary operators, prefix-product arrays, and Gram-matrix elements. For each class, we compare the cost of the parallel Hadamard test with that of the conventional one. Our unified approach significantly reduces the number of distinct circuit types, and can lower both computational time and financial costs in regimes where fixed per-circuit overheads dominate the total cost. In Gram-matrix workloads, it can also reduce the total number of shots when typical off-diagonal overlaps are small.

quant-pharXiv:2607.12344•Jul 15, 2026•1 citation
This notebook demonstrates how NumPy can be used to construct the unified matrix operator for a single-qubit circuit in which the Pauli-Y, Hadamard and Pauli-Z gates are applied sequentially. It explains the relationship between chronological circuit order and right-to-left matrix multiplication, computes the composite operator as Z @ H @ Y, prints the resulting 2 × 2 complex matrix and verifies numerically that the composite transformation remains unitary.
This educational Jupyter notebook demonstrates how to simulate sequential quantum-gate operations using NumPy. Beginning with the computational-basis state |0>, it applies the Hadamard and Pauli-X operators in chronological circuit order while explaining the corresponding right-to-left order of matrix multiplication. The notebook uses NumPy's matrix-multiplication operator to compute intermediate and final state vectors, verifies the equivalence of composite-operator evaluation, and confirms that unitary evolution preserves state normalisation. It is intended as a transparent, reproducible introduction to matrix-based single-qubit simulation for students, educators and readers beginning their study of quantum computing.
We introduce Unitaria, a Python library that brings the simplicity of classical linear algebra toolkits such as NumPy and SciPy to the implementation of quantum algorithms based on block encodings, a general-purpose abstraction in which a matrix is embedded as a sub-block of a larger unitary operator. Their implementation has so far required deep knowledge of low-level circuit construction, which Unitaria aims to eliminate. The library provides a composable, array-like interface through which users can define block encodings of matrices and vectors, combine them through standard operations such as addition, multiplication, tensor products, and the Quantum Singular Value Transformation, and extract the resulting quantum circuits automatically. A key feature is a matrix-arithmetic evaluation path in which every operation can be computed directly on encoded vectors and matrices without dependence on ancilla qubits or circuit simulation. This enables correctness verification and classical simulation that scale well beyond what state vector simulation permits and also allows resource estimation, including gate counts, qubit counts, and normalization constants, without executing any circuit. Together, these capabilities allow researchers to develop, verify, and analyze quantum linear algebra algorithms today, ahead of the availability of error-corrected hardware. Unitaria is open source and available at https://github.com/tequilahub/unitaria.
Abstract In the field of quantum computing, the study of single-qubit quantum gates is fundamental to constructing quantum circuits and algorithms. Single-qubit gates, such as the X, Y, and Z gates, enable precise manipulation of qubit states, which can be visualized on the Bloch sphere. The use of matrix representations, including Pauli matrices, provides a rigorous mathematical framework for analyzing gate operations and their effects within quantum circuits. This work also explores the application of the Quantum Fourier Transform (QFT) and introduces the Hadamard test subroutine as a practical method for evaluating quantum states. The presented algorithms were successfully implemented on a 5-qubit IBM quantum computer, demonstrating both the theoretical foundations and practical significance of quantum gates and Pauli matrices in modern quantum computation and their potential role in secure information processing.
The Hadamard test is a fundamental building block widely used in many quantum computing algorithms. It estimates the real or imaginary part of ⟨ψ∣U∣ψ⟩\langle ψ\vert U \vert ψ\rangle⟨ψ∣U∣ψ⟩, where ∣ψ⟩\vert ψ\rangle∣ψ⟩ is a quantum state and UUU is a unitary operator. In many algorithms, however, many such quantities must be estimated, leading to a large number of distinct circuit types, long computational times, and high financial costs. In this work, we propose the parallel Hadamard test, which combines multiple Hadamard tests into a single circuit type. We demonstrate how the parallel Hadamard test applies to three structural classes of workloads: arbitrary sets of unitary operators, prefix-product arrays, and Gram-matrix elements. For each class, we compare the cost of the parallel Hadamard test with that of the conventional one. Our unified approach significantly reduces the number of distinct circuit types, and can lower both computational time and financial costs in regimes where fixed per-circuit overheads dominate the total cost. In Gram-matrix workloads, it can also reduce the total number of shots when typical off-diagonal overlaps are small.