Skip to content

Commit

Permalink
minor typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ba2tro committed Nov 30, 2023
1 parent 7b3d66b commit 7a9f351
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stab_noisy_pair_func(F) = F*stab_perfect_pair_dm + (1-F)*mixed_dm
We then use that in the entangler setup (the same way we used a similar function when we were doing wavefunction simulations), simply by selecting the appropriate default representation type ([`CliffordRepr`](@ref) instead of [`QuantumOpticsRepr`](@ref)):

```julia
# exerpt from `firstgenrepeater-firstgenrepeater-clifford.jl`
# excerpt from `firstgenrepeater-firstgenrepeater-clifford.jl`
sim, network = simulation_setup(sizes, T2; representation = CliffordRepr)
noisy_pair = stab_noisy_pair_func(F)
```
Expand Down
4 changes: 2 additions & 2 deletions docs/src/howto/firstgenrepeater/firstgenrepeater.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ We will compute these correlators for the second pair on the extreme ends of the
```

Notice how the `XX` observable drops due to the T₂ dephasing experienced by the qubits.
And then it goes back up at the occurence of a successful purification
And then it goes back up at the occurrence of a successful purification
(or all the way to zero at failed purifications).
Here is what it looks like if we do not perform purification:

Expand All @@ -548,7 +548,7 @@ Much of the analog dynamics was implicit through the use of [backgrounds,
declaring the noise properties of various qubits](@ref Properties-and-Backgrounds).

The digital-ish dynamics was implemented through the use of
- [`initialize!`](@ref) for setting inital states to various qubits
- [`initialize!`](@ref) for setting initial states to various qubits
- [`apply!`](@ref) for the application of various gates
- [`traceout!`](@ref) for deleting qubits
- [`project_traceout!`](@ref) for projective measurements over qubits
Expand Down
4 changes: 2 additions & 2 deletions docs/src/register_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Applying an `operation` to the qubits referred to by the sequence of [`RegRef`](

Calls [`uptotime!`](@ref) in order to update any [`AbstractBackground`](@ref) properties.

Calls [`subsystemcompose`](@ref) in order to make one big state. Then goes to `apply!(state, subsystem_indices, operatin; time)`.
Calls [`subsystemcompose`](@ref) in order to make one big state. Then goes to `apply!(state, subsystem_indices, operation; time)`.

#### `apply!(state, subsystem_indices, operation; time)`

Expand Down Expand Up @@ -116,7 +116,7 @@ flowchart TB

!!! warning "Limitations of symbolic-to-explicit conversion"

As mentioned above, converting from symbolic to explicit representation for the `operation` is dependent only on the type of `state`, i.e. by the time the conversion is done, no knowledge of the register and its properties are kept (in particular its prefered representation is not considered).
As mentioned above, converting from symbolic to explicit representation for the `operation` is dependent only on the type of `state`, i.e. by the time the conversion is done, no knowledge of the register and its properties are kept (in particular its preferred representation is not considered).

!!! info "Short-circuiting the `express` dispatch"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/symbolics.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,4 @@ express(MixedState(X1)/2+SProjector(Z1)/2, CliffordRepr())

!!! warning "Stabilizer state expressions"

The state writen as $\frac{|Z₁⟩⊗|Z₁⟩+|Z₂⟩⊗|Z₂⟩}{√2}$ is a well known stabilizer state, namely a Bell state. However, automatically expressing it as a stabilizer is a prohibitively expensive computational operation in general. We do not perform that computation automatically. If you want to ensure that states you define can be automatically converted to tableaux for Clifford simulations, avoid using sumation of kets. On the other hand, in all of our Clifford Monte-Carlo simulations, `⊗` is fully supported, as well as [`SProjector`](@ref), [`MixedState`](@ref), [`StabilizerState`](@ref), and sumation of density matrices.
The state written as $\frac{|Z₁⟩⊗|Z₁⟩+|Z₂⟩⊗|Z₂⟩}{√2}$ is a well known stabilizer state, namely a Bell state. However, automatically expressing it as a stabilizer is a prohibitively expensive computational operation in general. We do not perform that computation automatically. If you want to ensure that states you define can be automatically converted to tableaux for Clifford simulations, avoid using sumation of kets. On the other hand, in all of our Clifford Monte-Carlo simulations, `⊗` is fully supported, as well as [`SProjector`](@ref), [`MixedState`](@ref), [`StabilizerState`](@ref), and sumation of density matrices.
2 changes: 1 addition & 1 deletion examples/congestionchain/2_makie_interactive.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ landing = App() do
- number of repeaters
- number of qubits available as memories at each repeater
- the mean time to successful generation of a raw Bell pair (governed by an exponential distribution)
- the time it takes to perform a swap at a reapeater
- the time it takes to perform a swap at a repeater
- the fidelity of a raw Bell pair (assuming depolarization noise)
- T₂ memory time (only dephasing is modeled)
Expand Down
2 changes: 1 addition & 1 deletion src/baseops/apply.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Apply a given operation on the given set of register slots.
`apply!([regA, regB], [slot1, slot2], Gates.CNOT)` would apply a CNOT gate
on the content of the given registers at the given slots.
The appropriate representatin of the gate is used,
The appropriate representation of the gate is used,
depending on the formalism under which a quantum state is stored in the given registers.
The Hilbert spaces of the registers are automatically joined if necessary.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/baseops/traceout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
Delete the given slot of the given register.
`traceout!(reg, slot)` would reset (perform a partial trace) over the given subsystem.
The Hilbert space of the register is automatically shrinked.
The Hilbert space of the register gets automatically shrunk.
"""
function traceout!(r::Register, i::Int)
stateref = r.staterefs[i]
Expand All @@ -58,7 +58,7 @@ Perform a projective measurement on the given slot of the given register.
`project_traceout!(reg, slot, [stateA, stateB])` performs a projective measurement,
projecting on either `stateA` or `stateB`, returning the index of the subspace
on which the projection happened. It assumes the list of possible states forms a basis
for the Hilbert space. The Hilbert space of the register is automatically shrinked.
for the Hilbert space. The Hilbert space of the register gets automatically shrunk.
A basis object can be specified on its own as well, e.g.
`project_traceout!(reg, slot, basis)`.
Expand Down
2 changes: 1 addition & 1 deletion src/queries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ end
See also: [`query`](@ref), [`tag!`](@ref), [`tag_types`](@ref)"""
struct Wildcard end

"""A wilcard instance for use with the tag querying functionality.
"""A wildcard instance for use with the tag querying functionality.
See also: [`query`](@ref), [`tag!`](@ref), [`tag_types`](@ref), [`Wildcard`](@ref)"""
const W = Wildcard()
Expand Down
2 changes: 1 addition & 1 deletion test/test_circuitzoo_purification.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ end
@test ma == mb
@test observable(r[1:2], projector(bell)) 1.0

# TODO: Should also taget qubits 1 and 2
# TODO: Should also target qubits 1 and 2
for error in [:X, :Y, :Z], target in 3:6
r = Register(6, rep())
for i in 1:3
Expand Down

0 comments on commit 7a9f351

Please sign in to comment.