Build Information
Failed to build swift-quantum, reference main (910bd9
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 11:55:11 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/crodriguezdominguez/swift-quantum.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/crodriguezdominguez/swift-quantum
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 910bd9b Small fix
Cloned https://github.com/crodriguezdominguez/swift-quantum.git
Revision (git rev-parse @):
910bd9b9cc6b9da880354e2ff6efccb8e0719ab6
SUCCESS checkout https://github.com/crodriguezdominguez/swift-quantum.git at main
Fetching https://github.com/apple/swift-numerics
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.16s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (3.32s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-quantum",
"name": "swift-quantum",
"url": "https://github.com/crodriguezdominguez/swift-quantum.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-quantum",
"dependencies": [
{
"identity": "swift-numerics",
"name": "swift-numerics",
"url": "https://github.com/apple/swift-numerics",
"version": "1.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/crodriguezdominguez/swift-quantum.git
[1/316] Fetching swift-quantum
Fetched https://github.com/crodriguezdominguez/swift-quantum.git from cache (0.80s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (0.64s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.03s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/crodriguezdominguez/swift-quantum.git
Working copy of https://github.com/crodriguezdominguez/swift-quantum.git resolved at main (910bd9b)
warning: '.resolve-product-dependencies': dependency 'swift-quantum' is not used by any target
Found 1 product dependencies
- swift-numerics
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/crodriguezdominguez/swift-quantum.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/6] Write sources
[4/6] Compiling _NumericsShims _NumericsShims.c
[5/6] Write swift-version--7754E27361AE5C74.txt
[7/16] Compiling RealModule Float80+Real.swift
[8/17] Compiling RealModule RealFunctions.swift
[9/17] Compiling RealModule Float+Real.swift
[10/17] Compiling RealModule AugmentedArithmetic.swift
[11/17] Emitting module RealModule
[12/17] Compiling RealModule ApproximateEquality.swift
[13/17] Compiling RealModule AlgebraicField.swift
[14/17] Compiling RealModule Float16+Real.swift
[15/17] Compiling RealModule Real.swift
[16/17] Compiling RealModule ElementaryFunctions.swift
[17/17] Compiling RealModule Double+Real.swift
[18/22] Compiling ComplexModule Complex.swift
[19/22] Compiling ComplexModule Arithmetic.swift
[20/22] Compiling ComplexModule ElementaryFunctions.swift
[21/22] Compiling ComplexModule Differentiable.swift
[22/22] Emitting module ComplexModule
[23/24] Compiling Numerics Numerics.swift
[24/24] Emitting module Numerics
[25/44] Emitting module SwiftQuantum
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Complex/Complex+Extensions.swift:94:1: warning: extension declares a conformance of imported type 'Complex' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'ComplexModule' introduce this conformance in the future
92 | }
93 |
94 | extension Complex : ExpressibleByFloatLiteral where RealType == Double {
| |- warning: extension declares a conformance of imported type 'Complex' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'ComplexModule' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
95 | public init(floatLiteral value: FloatLiteralType) {
96 | self.init(value)
[26/46] Compiling SwiftQuantum FlipCircuit.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
[27/46] Compiling SwiftQuantum GroverCircuit.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
[28/46] Compiling SwiftQuantum InverseCircuit.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
[29/46] Compiling SwiftQuantum QuMeasurer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
[30/46] Compiling SwiftQuantum QuRegister.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
[31/46] Compiling SwiftQuantum Integer+BinaryExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
[32/46] Compiling SwiftQuantum QuAnalyzer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
[33/46] Compiling SwiftQuantum QuTeleportationCircuit.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
[34/46] Compiling SwiftQuantum SumCircuits.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
[35/46] Compiling SwiftQuantum QuBitTransformer.swift
[36/46] Compiling SwiftQuantum QuCircuit.swift
[37/46] Compiling SwiftQuantum QuBit.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
[38/46] Compiling SwiftQuantum QuBitOperators.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:37:23: warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
| |- warning: static property 'excited' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'excited' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | public init(grounded:Bool=true) {
[39/46] Compiling SwiftQuantum QuCircuitSerializer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
[40/46] Compiling SwiftQuantum QuGate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
[41/46] Compiling SwiftQuantum QuRegisterOperators.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Complex/Complex+Extensions.swift:94:1: warning: extension declares a conformance of imported type 'Complex' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'ComplexModule' introduce this conformance in the future
92 | }
93 |
94 | extension Complex : ExpressibleByFloatLiteral where RealType == Double {
| |- warning: extension declares a conformance of imported type 'Complex' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'ComplexModule' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
95 | public init(floatLiteral value: FloatLiteralType) {
96 | self.init(value)
[42/46] Compiling SwiftQuantum Complex+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Foundations/QuBit.swift:36:23: warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public typealias QuAmplitude = Complex<Double>
31 |
32 | public struct QuBit : CustomStringConvertible, Equatable, QuAmplitudeMatrixConvertible {
| `- note: consider making struct 'QuBit' conform to the 'Sendable' protocol
33 | public fileprivate(set) var groundAmplitude: QuAmplitude
34 | public fileprivate(set) var excitedAmplitude: QuAmplitude
35 |
36 | public static let grounded:QuBit = QuBit(groundAmplitude: .one, excitedAmplitude: .zero)
| |- warning: static property 'grounded' is not concurrency-safe because non-'Sendable' type 'QuBit' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'grounded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | public static let excited:QuBit = QuBit(groundAmplitude: .zero, excitedAmplitude: .one)
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Complex/Complex+Extensions.swift:94:1: warning: extension declares a conformance of imported type 'Complex' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'ComplexModule' introduce this conformance in the future
92 | }
93 |
94 | extension Complex : ExpressibleByFloatLiteral where RealType == Double {
| |- warning: extension declares a conformance of imported type 'Complex' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'ComplexModule' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
95 | public init(floatLiteral value: FloatLiteralType) {
96 | self.init(value)
[43/46] Compiling SwiftQuantum PhaseEstimationCircuit.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Circuits/PhaseEstimationCircuit.swift:39:48: error: thrown expression type 'any Error' cannot be converted to error type 'Never'
37 | for k in 0..<quBitsOfPrecision {
38 | let exp = UInt(pow(2.0, Double(k)))
39 | currentMatrix = try! currentMatrix*pow(controlledU.transformationMatrix, exponent: exp-lastExp)
| `- error: thrown expression type 'any Error' cannot be converted to error type 'Never'
40 | let indices = [k]+targetQuBits
41 | let gate = UniversalGate(matrix: currentMatrix, name: gateName, numberOfInputs: controlledU.numberOfInputs, numberOfOutputs: controlledU.numberOfOutputs)
[44/46] Compiling SwiftQuantum QuGateCircuitImplementations.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Circuits/PhaseEstimationCircuit.swift:39:48: error: thrown expression type 'any Error' cannot be converted to error type 'Never'
37 | for k in 0..<quBitsOfPrecision {
38 | let exp = UInt(pow(2.0, Double(k)))
39 | currentMatrix = try! currentMatrix*pow(controlledU.transformationMatrix, exponent: exp-lastExp)
| `- error: thrown expression type 'any Error' cannot be converted to error type 'Never'
40 | let indices = [k]+targetQuBits
41 | let gate = UniversalGate(matrix: currentMatrix, name: gateName, numberOfInputs: controlledU.numberOfInputs, numberOfOutputs: controlledU.numberOfOutputs)
[45/46] Compiling SwiftQuantum QuAmplitudeMatrix.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:324:27: warning: capture of 'left' with non-sendable type 'QuAmplitudeMatrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | public struct QuAmplitudeMatrix {
| `- note: consider making struct 'QuAmplitudeMatrix' conform to the 'Sendable' protocol
18 | public fileprivate(set) var rows: Int
19 | public fileprivate(set) var columns: Int
:
322 | let q = DispatchQueue(label: "swift-quantum", attributes: .concurrent)
323 | DispatchQueue.concurrentPerform(iterations: left.rows, execute: { i in
324 | let row = left.sparseRow(i)
| `- warning: capture of 'left' with non-sendable type 'QuAmplitudeMatrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
325 | guard left.contents.defaultValue != 0.0 || row.contents.count > 0 else {
326 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:329:30: warning: capture of 'right' with non-sendable type 'QuAmplitudeMatrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | public struct QuAmplitudeMatrix {
| `- note: consider making struct 'QuAmplitudeMatrix' conform to the 'Sendable' protocol
18 | public fileprivate(set) var rows: Int
19 | public fileprivate(set) var columns: Int
:
327 | }
328 |
329 | for j in 0..<right.columns {
| `- warning: capture of 'right' with non-sendable type 'QuAmplitudeMatrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
330 | let col = columns[j]
331 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:330:31: warning: capture of 'columns' with non-sendable type '[SparseArray]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
328 |
329 | for j in 0..<right.columns {
330 | let col = columns[j]
| `- warning: capture of 'columns' with non-sendable type '[SparseArray]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
331 |
332 | guard right.contents.defaultValue != 0.0 || col.contents.count > 0 else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:347:25: warning: capture of 'contents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
| `- warning: capture of 'contents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | return result + (values.1 * otherContents[values.0])
349 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:330:31: warning: reference to captured var 'columns' in concurrently-executing code; this is an error in the Swift 6 language mode
328 |
329 | for j in 0..<right.columns {
330 | let col = columns[j]
| `- warning: reference to captured var 'columns' in concurrently-executing code; this is an error in the Swift 6 language mode
331 |
332 | guard right.contents.defaultValue != 0.0 || col.contents.count > 0 else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:347:25: warning: capture of 'contents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
| `- warning: capture of 'contents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | return result + (values.1 * otherContents[values.0])
349 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:347:39: warning: capture of 'sumContents' with non-sendable type '[Int : QuAmplitude]' (aka 'Dictionary<Int, Complex<Double>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
| `- warning: capture of 'sumContents' with non-sendable type '[Int : QuAmplitude]' (aka 'Dictionary<Int, Complex<Double>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | return result + (values.1 * otherContents[values.0])
349 | })
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-numerics/Sources/ComplexModule/Complex.swift:48:15: note: generic struct 'Complex' does not conform to the 'Sendable' protocol
46 | /// property.
47 | @frozen
48 | public struct Complex<RealType> where RealType: Real {
| `- note: generic struct 'Complex' does not conform to the 'Sendable' protocol
49 | // A note on the `x` and `y` properties
50 | //
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:348:57: warning: capture of 'otherContents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
348 | return result + (values.1 * otherContents[values.0])
| `- warning: capture of 'otherContents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
349 | })
350 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:347:25: warning: mutation of captured var 'contents' in concurrently-executing code; this is an error in the Swift 6 language mode
345 |
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
| `- warning: mutation of captured var 'contents' in concurrently-executing code; this is an error in the Swift 6 language mode
348 | return result + (values.1 * otherContents[values.0])
349 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:348:57: warning: capture of 'otherContents' with non-sendable type 'SparseArray' in an isolated closure; this is an error in the Swift 6 language mode
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
348 | return result + (values.1 * otherContents[values.0])
| `- warning: capture of 'otherContents' with non-sendable type 'SparseArray' in an isolated closure; this is an error in the Swift 6 language mode
349 | })
350 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
[46/46] Compiling SwiftQuantum SparseArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:324:27: warning: capture of 'left' with non-sendable type 'QuAmplitudeMatrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | public struct QuAmplitudeMatrix {
| `- note: consider making struct 'QuAmplitudeMatrix' conform to the 'Sendable' protocol
18 | public fileprivate(set) var rows: Int
19 | public fileprivate(set) var columns: Int
:
322 | let q = DispatchQueue(label: "swift-quantum", attributes: .concurrent)
323 | DispatchQueue.concurrentPerform(iterations: left.rows, execute: { i in
324 | let row = left.sparseRow(i)
| `- warning: capture of 'left' with non-sendable type 'QuAmplitudeMatrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
325 | guard left.contents.defaultValue != 0.0 || row.contents.count > 0 else {
326 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:329:30: warning: capture of 'right' with non-sendable type 'QuAmplitudeMatrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import Dispatch
16 |
17 | public struct QuAmplitudeMatrix {
| `- note: consider making struct 'QuAmplitudeMatrix' conform to the 'Sendable' protocol
18 | public fileprivate(set) var rows: Int
19 | public fileprivate(set) var columns: Int
:
327 | }
328 |
329 | for j in 0..<right.columns {
| `- warning: capture of 'right' with non-sendable type 'QuAmplitudeMatrix' in a `@Sendable` closure; this is an error in the Swift 6 language mode
330 | let col = columns[j]
331 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:330:31: warning: capture of 'columns' with non-sendable type '[SparseArray]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
328 |
329 | for j in 0..<right.columns {
330 | let col = columns[j]
| `- warning: capture of 'columns' with non-sendable type '[SparseArray]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
331 |
332 | guard right.contents.defaultValue != 0.0 || col.contents.count > 0 else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:347:25: warning: capture of 'contents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
| `- warning: capture of 'contents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | return result + (values.1 * otherContents[values.0])
349 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:330:31: warning: reference to captured var 'columns' in concurrently-executing code; this is an error in the Swift 6 language mode
328 |
329 | for j in 0..<right.columns {
330 | let col = columns[j]
| `- warning: reference to captured var 'columns' in concurrently-executing code; this is an error in the Swift 6 language mode
331 |
332 | guard right.contents.defaultValue != 0.0 || col.contents.count > 0 else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:347:25: warning: capture of 'contents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
| `- warning: capture of 'contents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | return result + (values.1 * otherContents[values.0])
349 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:347:39: warning: capture of 'sumContents' with non-sendable type '[Int : QuAmplitude]' (aka 'Dictionary<Int, Complex<Double>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
| `- warning: capture of 'sumContents' with non-sendable type '[Int : QuAmplitude]' (aka 'Dictionary<Int, Complex<Double>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 | return result + (values.1 * otherContents[values.0])
349 | })
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-numerics/Sources/ComplexModule/Complex.swift:48:15: note: generic struct 'Complex' does not conform to the 'Sendable' protocol
46 | /// property.
47 | @frozen
48 | public struct Complex<RealType> where RealType: Real {
| `- note: generic struct 'Complex' does not conform to the 'Sendable' protocol
49 | // A note on the `x` and `y` properties
50 | //
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:348:57: warning: capture of 'otherContents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
348 | return result + (values.1 * otherContents[values.0])
| `- warning: capture of 'otherContents' with non-sendable type 'SparseArray' in a `@Sendable` closure; this is an error in the Swift 6 language mode
349 | })
350 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:347:25: warning: mutation of captured var 'contents' in concurrently-executing code; this is an error in the Swift 6 language mode
345 |
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
| `- warning: mutation of captured var 'contents' in concurrently-executing code; this is an error in the Swift 6 language mode
348 | return result + (values.1 * otherContents[values.0])
349 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/QuAmplitudeMatrix.swift:348:57: warning: capture of 'otherContents' with non-sendable type 'SparseArray' in an isolated closure; this is an error in the Swift 6 language mode
346 | q.async(flags: .barrier, execute: {
347 | contents[k] = sumContents.reduce(QuAmplitude(0.0, 0.0), { (result, values) in
348 | return result + (values.1 * otherContents[values.0])
| `- warning: capture of 'otherContents' with non-sendable type 'SparseArray' in an isolated closure; this is an error in the Swift 6 language mode
349 | })
350 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuantum/Maths/Matrix/SparseArray.swift:11:17: note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | internal struct SparseArray : Collection, Equatable {
| `- note: consider making struct 'SparseArray' conform to the 'Sendable' protocol
12 | public func index(after i: Int) -> Int {
13 | return i+1
BUILD FAILURE 6.0 macosSpm