# US 2026/0170372 A1 · Multi-step quantum basis state shift

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0170372 A1
- Document ID: US20260170372A1
- Status: Published application
- Kind: A1
- Application number: 18/980,430
- Filed: 2024-12-13
- Published: 2026-06-18
- Earliest claimed: 2024-12-13
- Assignees: Quanscient Oy
- Applicants: Quanscient Oy
- Inventors: Ossi Niemimäki; Ljubomir Budinski; Roberto Zamora-Zamora; Valtteri Lahtinen
- Web page: https://patentgrep.com/patent/US20260170372A1

## CPC

- G06N 10/20: Models of quantum computing, e.g. quantum circuits or universal quantum computers
- G06N 10/70: Quantum error correction, detection or prevention, e.g. surface codes or magic state distillation
- G11C 19/32: using super-conductive elements
- G06N 10/60: Quantum algorithms, e.g. based on quantum optimisation, quantum Fourier or Hadamard transforms
- G06N 10/80: Quantum programming, e.g. interfaces, languages or software-development kits for creating or handling programs capable of running on quantum computers; Platforms for simulating or accessing quantum computers, e.g. cloud-based quantum computing
- H03K 19/20: characterised by logic function, e.g. AND, OR, NOR, NOT circuits (H03K19/003 - H03K19/01 take precedence)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G11C: STATIC STORES (semiconductor memory devices H10B)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

A method and a quantum circuit to be utilised for performing a multi-step quantum basis state shift. For a state vector space having the size of 2N+1, a full shift register includes N+1 qubits. A last qubit (qN+1) of the full shift register is a superposition qubit, which allows for defining a superposition of substates. The superposition qubit is used to determine which substates are to be incremented and which substates are to be decremented. Even substates to be incremented can be incremented by simply applying a step of inverting an i+1th qubit (qi+1), namely a step qubit. Similarly, odd substates to be decremented can be decremented by applying the same step of inverting. Remaining steps of the quantum circuit are employed to perform a rearrangement of the even substates to be incremented, the even substates to be decremented, the odd substates to be incremented, and the odd substates to be decremented, such that applying the step of inverting performs the multi-step quantum basis state shift in one go.

## Claims

### Claim 1

A method being executed by a quantum computer or a quantum simulator, the method comprising:
setting up a full shift register and an ancilla register for a quantum circuit to be utilised for performing a multi-step quantum basis state shift in a state vector space having a size of 2N+1, wherein the full shift register comprises N+1 qubits, wherein first N qubits of the full shift register form an array register, and a last qubit of the full shift register is a superposition qubit, and the ancilla register comprises at most N−1 ancilla qubits;
dividing an input state comprising 2N+1 array substates into a first subset of array substates that are to be incremented and a second subset of array substates that are to be decremented, by considering an array substate whose superposition qubit is 0 as an array substate to be incremented, and by considering an array substate whose superposition qubit is 1 as an array substate to be decremented; and
for a step size of 2i in the multi-step quantum basis state shift, where a step index ‘i’ is a non-negative integer less than N,
for i<N−2, setting up the quantum circuit by:
decomposing the array substates of the first subset into even substates to be incremented and odd substates to be incremented, whilst decomposing the array substates of the second subset into even substates to be decremented and odd substates to be decremented, by considering a substate whose kth qubit is 0 as an even substate, and by considering a substate whose kth qubit (qk) is 1 as an odd substate, wherein k is equal to i+1;
re-mapping state amplitudes of the even substates to be decremented and the odd substates to be decremented;
recursively decomposing the odd substates to be incremented into further even substates to be incremented and further odd substates to be incremented, whilst recursively decomposing the even substates to be decremented into further even substates to be decremented and further odd substates to be decremented, by considering a substate whose kth qubit is 0 as an even substate, and by considering a substate whose kth qubit is 1 as an odd substate, wherein k is incremented by 1 with each recursion until k reaches N−1;
re-mapping state amplitudes of the further even substates to be decremented and the further odd substates to be decremented, after each recursion;
inverting the k+1th qubit using a k−ith ancilla qubit of the ancilla register as a control, to swap amplitude blocks of a size 2k between adjacent even substates to be decremented with respect to the kth qubit, whilst swapping amplitude blocks of a size 2k between adjacent odd substates to be incremented with respect to the kth qubit, wherein k is equal to N−1, and k is decremented by 1 with each recursion;
reversing the step of re-mapping the state amplitudes of the further even substates to be decremented and the further odd substates to be decremented;
reversing the step of recursively decomposing, wherein the step of inverting and the step of reversing the step of re-mapping are repeated prior to the reversing of each recursion of the step of recursively decomposing;
inverting the k+1th qubit using a first ancilla qubit of the ancilla register as a control, to swap amplitude blocks of a size 2k between adjacent even substates to be decremented with respect to the kth qubit, whilst swapping amplitude blocks of a size 2k between adjacent odd substates to be incremented with respect to the kth qubit, wherein k is equal to i+1;
reversing the step of re-mapping the state amplitudes of the even substates to be decremented and the odd substates to be decremented;
reversing the step of decomposing; and
inverting an i+1th qubit to complete the multi-step quantum basis state shift of the state amplitudes according to the step size of 2i.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
for i=N−1, setting up the quantum circuit by:
inverting the i+1th qubit to complete the multi-step quantum basis state shift of the state amplitudes according to the step size of 2i.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
for i=N−2, setting up the quantum circuit by:
decomposing the array substates of the first subset into even substates to be incremented and odd substates to be incremented, whilst decomposing the array substates of the second subset into even substates to be decremented and odd substates to be decremented, by considering a substate whose i+1th qubit is 0 as an even substate, and by considering a substate whose i+1th qubit is 1 as an odd substate;
re-mapping state amplitudes of the even substates to be decremented and the odd substates to be decremented;
inverting the i+2th qubit using the first ancilla qubit of the ancilla register as a control, to swap amplitude blocks of a size 2i+1 between adjacent even substates to be decremented with respect to the i+1th qubit, whilst swapping amplitude blocks of a size 2i+1 between adjacent odd substates to be incremented with respect to the i+1th qubit;
reversing the step of re-mapping the state amplitudes of the even substates to be decremented and the odd substates to be decremented;
reversing the step of decomposing; and
inverting the i+1th qubit to complete the multi-step quantum basis state shift of the state amplitudes according to the step size of 2i.

### Claim 4 (depends on 1)

The method of claim 1, wherein the quantum circuit comprises in a sequential order:
a beginning segment comprising two CX gates;
optionally, a middle segment comprising multiple CX gates and multiple two-controlled gates; and
an ending segment comprising three CX gates and an X gate.

### Claim 5 (depends on 4)

The method of claim 4, wherein the two CX gates of the beginning segment are applied in a sequential order of:
a CX gate that uses the i+1th qubit of the array register as a control corresponding to a state of |1>, and a first ancilla qubit of the ancilla register as a target; and
a CX gate that uses the superposition qubit of the full shift register as a control corresponding to a state of |1>, and the first ancilla qubit of the ancilla register as a target.

### Claim 6 (depends on 4)

The method of claim 4, wherein the three CX gates of the ending segment are applied in a sequential order of:
a CX gate that uses the first ancilla qubit of the ancilla register as a control corresponding to a state of |1>, and an i+2th qubit of the array register as a target;
a CX gate that uses the superposition qubit of the full shift register as a control corresponding to a state of |1>, and the first ancilla qubit of the ancilla register as a target; and
a CX gate that uses the i+1th qubit of the array register as a control corresponding to a state of |1>, and the first ancilla qubit of the ancilla register as a target,
wherein the X gate is applied to the i+1th qubit of the array register.

### Claim 7 (depends on 4)

The method of claim 4, wherein the middle segment comprises one or more sets of CX gates and two-controlled gates, wherein a number of sets in the middle segment depends on a number of recursions of the step of recursively decomposing, wherein a given set corresponding to a given recursion comprises in a sequential order:
a first CX gate that uses the superposition qubit of the full shift register as a control corresponding to a state of |1>, and a kth qubit of the array register as a target;
a first two-controlled gate that uses the kth qubit of the array register and a k−i−1th ancilla qubit of the ancilla register as controls corresponding to a state of |1>, and a k−ith ancilla qubit of the ancilla register as a target;
a second CX gate that uses the k−ith ancilla qubit of the ancilla register as a control corresponding to a state of |1>, and an k+1th qubit of the array register as a target;
a second two-controlled gate that uses the kth qubit of the array register and the k−i−1th ancilla qubit of the ancilla register as controls corresponding to a state of |1>, and the k−ith ancilla qubit of the ancilla register as a target; and
a third CX gate that uses the superposition qubit of the full shift register as a control corresponding to a state of |1>, and the kth qubit of the array register as a target,
wherein an M+1th set corresponding to an M+1th recursion is appended after a corresponding first two-controlled gate of an Mth set corresponding to an Mth recursion.

### Claim 8 (depends on 1)

The method of claim 1, further comprising performing at least one additional multi-step quantum basis state shift having a size of 2i for at least one additional dimension.

### Claim 9 (depends on 8)

The method of claim 8, wherein the multi-step quantum basis state shift and the at least one additional multi-step quantum basis state shift are performed for one dimension and the at least one additional dimension, respectively, by stacking one-dimensional shifts in a sequence.

### Claim 10 (depends on 8)

The method of claim 8, wherein the multi-step quantum basis state shift and the at least one additional multi-step quantum basis state shift are performed for the one dimension and the at least one additional dimension, respectively, by using controlled swap blocks to change a qubit ordering for corresponding substates in the multi-step quantum basis state shift and the at least one additional multi-step quantum basis state shift.

### Claim 11 (depends on 1)

The method of claim 1, further comprising executing a quantum algorithm by using the quantum circuit to perform the multi-step quantum basis state shift as a subroutine in the quantum algorithm.

### Claim 12 (depends on 11)

The method of claim 11, wherein the quantum algorithm is executed to perform a simulation of a physical process, wherein the method further comprises providing a user with measurements taken after the simulation of the physical process is performed.

### Claim 13 (depends on 1)

A quantum computer or a quantum simulator configured to execute a method according to claim 1.

### Claim 14

A quantum circuit executed by a quantum computer or a quantum simulator, the quantum circuit comprising a full shift register and an ancilla register to be utilised for performing a multi-step quantum basis state shift in a state vector space having a size of 2N+1, wherein the full shift register comprises N+1 qubits, wherein first N qubits of the full shift register form an array register, and a last qubit of the full shift register is a superposition qubit, and the ancilla register comprises at most N−1 ancilla qubits, wherein the quantum circuit comprises in a sequential order:
a beginning segment comprising two CX gates;
optionally, a middle segment comprising multiple CX gates and multiple two-controlled gates; and
an ending segment comprising three CX gates and an X gate.

### Claim 15 (depends on 14)

The quantum circuit of claim 14, wherein for a step size of 2i in the multi-step quantum basis state shift, where a step index ‘i’ is a non-negative integer less than N,
for i<N−2 or i=N−2, the two CX gates of the beginning segment are applied in a sequential order of:
a CX gate that uses the i+1th qubit of the array register as a control corresponding to a state of |1>, and a first ancilla qubit of the ancilla register as a target; and
a CX gate that uses the superposition qubit of the full shift register as a control corresponding to a state of |1>, and the first ancilla qubit of the ancilla register as a target.

### Claim 16 (depends on 14)

The quantum circuit of claim 14, wherein for a step size of 2i in the multi-step quantum basis state shift, where a step index ‘i’ is a non-negative integer less than N,
for i<N−2 or i=N−2, the three CX gates of the ending segment are applied in a sequential order of:
a CX gate that uses the first ancilla qubit of the ancilla register as a control corresponding to a state of |1>, and an i+2th qubit of the array register as a target;
a CX gate that uses the superposition qubit of the full shift register as a control corresponding to a state of |1>, and the first ancilla qubit of the ancilla register as a target; and
a CX gate that uses the i+1th qubit of the array register as a control corresponding to a state of |1>, and the first ancilla qubit of the ancilla register as a target,
wherein the X gate is applied to the i+1th qubit of the array register.

### Claim 17 (depends on 14)

The quantum circuit of claim 14, wherein for a step size of 2i in the multi-step quantum basis state shift, where a step index ‘i’ is a non-negative integer less than N,
for i<N−2, the middle segment comprises one or more sets of CX gates and two-controlled gates, wherein a number of sets in the middle segment depends on a number of recursions, wherein k is initially equal to i+1, and k is incremented by 1 with each recursion until k reaches N−1, wherein a given set corresponding to a given recursion comprises in a sequential order:
a first CX gate that uses the superposition qubit of the full shift register as a control corresponding to a state of |1>, and a kth qubit of the array register as a target;
a first two-controlled gate that uses the kth qubit of the array register and a k−i−1th ancilla qubit (of the ancilla register as controls corresponding to a state of |1>, and a k−ith ancilla qubit of the ancilla register as a target;
a second CX gate that uses the k−ith ancilla qubit of the ancilla register as a control corresponding to a state of |1>, and an k+1th qubit of the array register as a target;
a second two-controlled gate that uses the kth qubit of the array register and the k−i−1th ancilla qubit of the ancilla register as controls corresponding to a state of |1>, and the k−ith ancilla qubit of the ancilla register as a target; and
a third CX gate that uses the superposition qubit of the full shift register as a control corresponding to a state of |1>, and the kth qubit of the array register as a target,
wherein an M+1th set corresponding to an M+1th recursion is appended after a corresponding first two-controlled gate of an Mth set corresponding to an Mth recursion.
