Bra-Ket

Also known as Dirac Notation

The Bra–ket notation is a compact way to describe quantum states and their inner products. A ket represents a column vector describing a quantum state. A bra represents its conjugate transpose (a row vector). The inner product gives a complex number (like an overlap or probability amplitude), and the outer product gives an operator.

by Frank Zickert
Coming soon...

The Bra, The Ket, And Suddenly The Trap Is Set

In Quantum Computing is a different kind of computation that builds upon the phenomena of Quantum Mechanics.
Learn more about Quantum Computing
predictions come from one equation. The The Born Rule states that the probability of finding a quantum system in a particular state is given by the square of the amplitude of its wavefunction, (|\psi|^2). In other words, it connects the abstract wavefunction to measurable outcomes. This is what allows quantum mechanics to make statistical predictions about experimental results.
Learn more about Born Rule

Here:

  • is the A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin.
    Learn more about Quantum State
  • labels a possible In quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition.
    Learn more about Measurement
    outcome , such as or for a A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states.
    Learn more about Quantum Bit
  • is a A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
    Learn more about Complex Number
    called an In quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions.
    Learn more about Amplitude
    .
  • Squaring the In quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions.
    Learn more about Amplitude
    magnitude (absolute) gives a probability of measuring the A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin.
    Learn more about Quantum State
    the outcome .

And even though bras like and A ket (written as |ψ⟩) represents a vector in a complex Hilbert space, describing the state of a quantum system. It encodes all measurable information about that system. In linear algebra terms, it’s a column vector, while the corresponding bra (⟨ψ|) is its conjugate transpose (a row vector).
Learn more about Ket
like look intimidating at first, they are actually very useful for understanding this equation.


The Bra-Ket notation is a compact language for A vector is a mathematical object that has both magnitude (size) and direction. It’s often represented as an arrow or as an ordered list of numbers (components) that describe its position in space, such as . Vectors are used to represent quantities like velocity, force, or displacement.
Learn more about Vector
used in Quantum Computing is a different kind of computation that builds upon the phenomena of Quantum Mechanics.
Learn more about Quantum Computing
However, most people first encounter it in the driest possible way: in pure mathematics.

Then a A ket (written as |ψ⟩) represents a vector in a complex Hilbert space, describing the state of a quantum system. It encodes all measurable information about that system. In linear algebra terms, it’s a column vector, while the corresponding bra (⟨ψ|) is its conjugate transpose (a row vector).
Learn more about Ket
is a column A vector is a mathematical object that has both magnitude (size) and direction. It’s often represented as an arrow or as an ordered list of numbers (components) that describe its position in space, such as . Vectors are used to represent quantities like velocity, force, or displacement.
Learn more about Vector
a bra is a row A vector is a mathematical object that has both magnitude (size) and direction. It’s often represented as an arrow or as an ordered list of numbers (components) that describe its position in space, such as . Vectors are used to represent quantities like velocity, force, or displacement.
Learn more about Vector
and is row times column.

Figure 1 Bra and ket as vectors

This leads directly to the conclusion: A bra is just the transpose of a ket. This is the matrix that is created by mirroring along the diagonal. This makes sense, since in linear algebra, rows and columns are actually just rotated versions of each other.

Treating bras as just transposes sounds harmless, but this picture breaks as soon as quantum rules enter. This is because the numbers in the A vector is a mathematical object that has both magnitude (size) and direction. It’s often represented as an arrow or as an ordered list of numbers (components) that describe its position in space, such as . Vectors are used to represent quantities like velocity, force, or displacement.
Learn more about Vector
are A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
Learn more about Complex Number

And because amplitudes are A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
Learn more about Complex Number
probabilities must involve complex The complex conjugate of a A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
Learn more about Complex Number
, where and , is defined as . So you flip the sign of the imaginary part and leave the real part unchanged.
Learn more about Complex Conjugate
.

If bras were just A transpose of a matrix is formed by flipping it over its diagonal. Rows become columns and columns become rows. Mathematically, the element at position in the original matrix moves to in the transposed matrix. It’s often denoted as or .
Learn more about Transpose
An inner product is a mathematical operation that takes two vectors and returns a single number measuring how similar or aligned they are. In Euclidean space, it’s the sum of the products of corresponding components (e.g., ). It generalizes the dot product and defines geometric concepts likelength and angle in vector spaces.
Learn more about Inner Product
would look like plain row–column multiplication with no complex conjugation.

Take a state and multiply it by a phase with . Physically, nothing should change. But with a transpose-only inner product, the length squared would scale as

which flips a positive quantity into a negative one. That is impossible for probabilities.

So, A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
Learn more about Complex Number
force one side of the An inner product is a mathematical operation that takes two vectors and returns a single number measuring how similar or aligned they are. In Euclidean space, it’s the sum of the products of corresponding components (e.g., ). It generalizes the dot product and defines geometric concepts likelength and angle in vector spaces.
Learn more about Inner Product
to The complex conjugate of a A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
Learn more about Complex Number
, where and , is defined as . So you flip the sign of the imaginary part and leave the real part unchanged.
Learn more about Complex Conjugate
In Quantum Computing is a different kind of computation that builds upon the phenomena of Quantum Mechanics.
Learn more about Quantum Computing
that side is the bra. Therefore, Bras are In mathematics, the adjoint of a matrix (or operator) is its conjugate transpose: take the transpose and then replace each entry with its conjugate. For a matrix , the adjoint is written ). It generalizes the transpose to complex spaces and is central in defining Hermitian and unitary operators.
Learn more about Adjoint
not A transpose of a matrix is formed by flipping it over its diagonal. Rows become columns and columns become rows. Mathematically, the element at position in the original matrix moves to in the transposed matrix. It’s often denoted as or .
Learn more about Transpose


But instead of starting with formal definitions, let's approach it intuitively.

A A ket (written as |ψ⟩) represents a vector in a complex Hilbert space, describing the state of a quantum system. It encodes all measurable information about that system. In linear algebra terms, it’s a column vector, while the corresponding bra (⟨ψ|) is its conjugate transpose (a row vector).
Learn more about Ket
like represents the A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin.
Learn more about Quantum State
(here named "psi", ).

A bra (here named "phi", ) is the thing that acts on a A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin.
Learn more about Quantum State
to produce an In quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions.
Learn more about Amplitude
.

When a bra acts on a A ket (written as |ψ⟩) represents a vector in a complex Hilbert space, describing the state of a quantum system. It encodes all measurable information about that system. In linear algebra terms, it’s a column vector, while the corresponding bra (⟨ψ|) is its conjugate transpose (a row vector).
Learn more about Ket
it forms the An inner product is a mathematical operation that takes two vectors and returns a single number measuring how similar or aligned they are. In Euclidean space, it’s the sum of the products of corresponding components (e.g., ). It generalizes the dot product and defines geometric concepts likelength and angle in vector spaces.
Learn more about Inner Product
, which is the In quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions.
Learn more about Amplitude
associated with outcome . It is a A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
Learn more about Complex Number
that answers the question: How much does the state overlap with outcome ?


? shows the same idea in Qiskit is an open-source Python framework for programming and simulating quantum computers. It lets users create quantum circuits, run them on real quantum hardware or simulators, and analyze the results. Essentially, it bridges high-level quantum algorithms with low-level hardware execution.
Learn more about Qiskit
:

inner_product.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector
 
# Build a 1-qubit circuit that applies H to |0>
qc = QuantumCircuit(1)
qc.h(0)
 
# Get the statevector |ψ> in the {|0>, |1>} basis
psi = Statevector.from_instruction(qc)
 
# Amplitude <0|ψ>
amp_0 = psi.data[0]
 
# Probability p(0) = |<0|ψ>|^2
p0 = abs(amp_0) ** 2
 
print("Amplitude <0|ψ> =", amp_0)
print("Probability p(0) =", p0)
Listing 1 Computing the inner product

Conceptually, this is what is happening:

  • We psi by applying the The Hadamard operator, often denoted H, is a single-qubit quantum gate that creates an equal superposition of and . In other words, It turns the states of the computational basis and into the states of the Fourier basis and .
    Learn more about Hadamard Operator
    on the initial state is a basis state.
    Learn more about
    .
  • Qiskit is an open-source Python framework for programming and simulating quantum computers. It lets users create quantum circuits, run them on real quantum hardware or simulators, and analyze the results. Essentially, it bridges high-level quantum algorithms with low-level hardware execution.
    Learn more about Qiskit
    always uses the The computational basis is the standard set of basis states used to describe qubits in quantum computing. These are typically and for a single qubit. For multi-qubit systems all possible combinations of basis states denote the computational basis, like , , , and . These states correspond to classical bit strings and form an orthonormal basis for the system's Hilbert space. Any quantum state can be expressed as a superposition of these computational basis states.
    Learn more about Computational Basis
    silently. It provides the outcomes and .
  • psi.data[0] the In quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions.
    Learn more about Amplitude
    .
  • its magnitude applies the The Born Rule states that the probability of finding a quantum system in a particular state is given by the square of the amplitude of its wavefunction, (|\psi|^2). In other words, it connects the abstract wavefunction to measurable outcomes. This is what allows quantum mechanics to make statistical predictions about experimental results.
    Learn more about Born Rule
    directly.

So what we are really doing is asking for the overlaps of the A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin.
Learn more about Quantum State
with the A basis state in quantum computing is one of the fundamental states that form the building blocks of a quantum system’s state space. For a single qubit, the basis states are and ; any other qubit state is a superposition of these. In systems with multiple qubits, basis states are all possible combinations of s and s (e.g., , , , and ), forming an orthonormal basis for the system’s Hilbert space.
Learn more about Basis State
is a basis state.
Learn more about
and is a basis state.
Learn more about
. Or, more precisely, with their corresponding outcomes and . It gives us the output denoted in ?.

1
2
Amplitude <0|ψ> = (0.7071067811865475+0j)
Probability p(0) = 0.4999999999999999
Listing 2 Output of the Qiskit code

So, squaring the magnitude of that overlap gives the probability of measuring the state as outcome .

A bra is a linear functional that acts on a A ket (written as |ψ⟩) represents a vector in a complex Hilbert space, describing the state of a quantum system. It encodes all measurable information about that system. In linear algebra terms, it’s a column vector, while the corresponding bra (⟨ψ|) is its conjugate transpose (a row vector).
Learn more about Ket
to produce an In quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions.
Learn more about Amplitude
probabilities come from squaring its magnitude. Everything else follows from that.


But what happens if we flip the order? Like this:

This object is not a number. It is the outer product. It is a machine that takes a A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin.
Learn more about Quantum State
as input and outputs another A quantum state is the complete mathematical description of a quantum system, containing all the information needed to predict measurement outcomes. It’s usually represented by a wavefunction or a state vector in a Hilbert space. The state defines probabilities, not certainties, for observable quantities like position, momentum, or spin.
Learn more about Quantum State
.

Take an arbitrary state and apply the outer product to it:

Read this from right to left:

  1. The bra fires first. It produces , a A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
    Learn more about Complex Number
    representing the overlap of with outcome .
  2. That number rescales the state .

So the result is

Conceptually, we ask how much the state looks like , then output scaled by that answer.

An outer product combines a A ket (written as |ψ⟩) represents a vector in a complex Hilbert space, describing the state of a quantum system. It encodes all measurable information about that system. In linear algebra terms, it’s a column vector, while the corresponding bra (⟨ψ|) is its conjugate transpose (a row vector).
Learn more about Ket
and a bra to build an operator: something that acts on states, not a number.


A particularly important case is when the bra and A ket (written as |ψ⟩) represents a vector in a complex Hilbert space, describing the state of a quantum system. It encodes all measurable information about that system. In linear algebra terms, it’s a column vector, while the corresponding bra (⟨ψ|) is its conjugate transpose (a row vector).
Learn more about Ket
match like

This operator is called a projector. When we apply it to a state , we get

What this does is very specific:

  • it extracts the In quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions.
    Learn more about Amplitude
    for outcome ,
  • and rebuilds a state that points entirely in the direction,
  • scaled by that In quantum computing an amplitude is a complex number that describes the weight of a basis state in a quantum superposition. The squared magnitude of an amplitude gives the probability of measuring that basis state. Amplitudes can interfere, this means adding or canceling, allowing quantum algorithms to bias outcomes toward correct solutions.
    Learn more about Amplitude

In simple words: we keep only the part of the state that corresponds to outcome and discard everything else.

A projector answers one yes/no question: “Is the state aligned with outcome ?” Everything else is thrown away.


Born's rule revisited

Recall the The Born Rule states that the probability of finding a quantum system in a particular state is given by the square of the amplitude of its wavefunction, (|\psi|^2). In other words, it connects the abstract wavefunction to measurable outcomes. This is what allows quantum mechanics to make statistical predictions about experimental results.
Learn more about Born Rule
we started with.

As we pointed out earlier, computing the probabilities involves complex The complex conjugate of a A complex number is a number that has two parts: a real part and an imaginary part, written as , where . The real part behaves like ordinary numbers, while the imaginary part represents a direction perpendicular to the real axis on the complex plane. Complex numbers let us represent and calculate quantities involving square roots of negative numbers.
Learn more about Complex Number
, where and , is defined as . So you flip the sign of the imaginary part and leave the real part unchanged.
Learn more about Complex Conjugate
By definition, . Therefore

Because bras are In mathematics, the adjoint of a matrix (or operator) is its conjugate transpose: take the transpose and then replace each entry with its conjugate. For a matrix , the adjoint is written ). It generalizes the transpose to complex spaces and is central in defining Hermitian and unitary operators.
Learn more about Adjoint
the complex conjugate is

Putting this together,

Now notice what sits in the middle:

When we compute the probability, the projector appears.

So, we can rewrite the probability as

Conceptually,

  1. the middle object is the projector.
  2. It acts on the state , keeping only the part aligned with .
  3. The bra then computes the overlap, producing a number. That is the probability.

Once you adopt this viewpoint,

  • bras are questions,
  • A ket (written as |ψ⟩) represents a vector in a complex Hilbert space, describing the state of a quantum system. It encodes all measurable information about that system. In linear algebra terms, it’s a column vector, while the corresponding bra (⟨ψ|) is its conjugate transpose (a row vector).
    Learn more about Ket
    are states,
  • An inner product is a mathematical operation that takes two vectors and returns a single number measuring how similar or aligned they are. In Euclidean space, it’s the sum of the products of corresponding components (e.g., ). It generalizes the dot product and defines geometric concepts likelength and angle in vector spaces.
    Learn more about Inner Product
    are overlaps,
  • outer products are actions built from a question and a state,
  • Projectors are In quantum computing, measurement is the process of extracting classical information from a quantum state. It collapses a qubit’s superposition into one of its basis states (usually or ), with probabilities determined by the amplitudes of those states. After measurement, the qubit’s state becomes definite, destroying the original superposition.
    Learn more about Measurement
    actions

This is the point where Bra–Ket notation stops being mere notation and becomes a clear description of how quantum predictions are actually computed.